summaryrefslogtreecommitdiff
path: root/sys/net80211/ieee80211_crypto.c
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2008-08-12 19:34:55 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2008-08-12 19:34:55 +0000
commitac2664ed9f4681100c1ad168a466daf35f05d93e (patch)
tree9724f18c7ccde982b1738d12100b77102c74101f /sys/net80211/ieee80211_crypto.c
parent37147c1ecbdb7abd4af0ea64a4a8330770d81b71 (diff)
missing SHA-256 bits.
Diffstat (limited to 'sys/net80211/ieee80211_crypto.c')
-rw-r--r--sys/net80211/ieee80211_crypto.c5
1 files 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 <damien.bergamini@free.fr>
@@ -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 */