From 89e249975dea5bc7c0eb224258ad514b0c26e211 Mon Sep 17 00:00:00 2001 From: damien Date: Tue, 12 Aug 2008 19:34:54 +0000 Subject: [PATCH] missing SHA-256 bits. --- sys/net80211/ieee80211_crypto.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/net80211/ieee80211_crypto.c b/sys/net80211/ieee80211_crypto.c index be0fee80237..484660cc9bb 100644 --- a/sys/net80211/ieee80211_crypto.c +++ b/sys/net80211/ieee80211_crypto.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211_crypto.c,v 1.50 2008/08/12 19:29:07 damien Exp $ */ +/* $OpenBSD: ieee80211_crypto.c,v 1.51 2008/08/12 19:34:54 damien Exp $ */ /*- * Copyright (c) 2008 Damien Bergamini @@ -175,7 +175,8 @@ const u_int8_t * ieee80211_get_pmk(struct ieee80211com *ic, struct ieee80211_node *ni, const u_int8_t *pmkid) { - if (ni->ni_rsnakms == IEEE80211_AKM_PSK) + if (ni->ni_rsnakms == IEEE80211_AKM_PSK || + ni->ni_rsnakms == IEEE80211_AKM_SHA256_PSK) return ic->ic_psk; /* the PMK is the PSK */ /* XXX find the PMK in the PMKSA cache using the PMKID */ -- 2.20.1