aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/hostapd.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2008-12-31 15:49:43 (GMT)
committerJouni Malinen <j@w1.fi>2008-12-31 15:49:43 (GMT)
commit1aa5c1347140320da0e70b4332ed652557fa9c24 (patch)
treebf2ee71085f6f141419b2b73dfd4ab0b1b4d958e /hostapd/hostapd.c
parentd5263983ace34a19e32441edac23cebfe0d0061b (diff)
downloadhostap-06-1aa5c1347140320da0e70b4332ed652557fa9c24.zip
hostap-06-1aa5c1347140320da0e70b4332ed652557fa9c24.tar.gz
hostap-06-1aa5c1347140320da0e70b4332ed652557fa9c24.tar.bz2
Clear BIP keys, too, when removing broadcast keys with MFP enabled
Diffstat (limited to 'hostapd/hostapd.c')
-rw-r--r--hostapd/hostapd.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/hostapd/hostapd.c b/hostapd/hostapd.c
index 6a0c131..1da0bf5 100644
--- a/hostapd/hostapd.c
+++ b/hostapd/hostapd.c
@@ -525,6 +525,19 @@ static void hostapd_broadcast_key_clear_iface(struct hostapd_data *hapd,
"(ifname=%s keyidx=%d)\n", ifname, i);
}
}
+#ifdef CONFIG_IEEE80211W
+ if (hapd->conf->ieee80211w) {
+ for (i = NUM_WEP_KEYS; i < NUM_WEP_KEYS + 2; i++) {
+ if (hostapd_set_encryption(ifname, hapd, "none", NULL,
+ i, NULL, 0,
+ i == 0 ? 1 : 0)) {
+ printf("Failed to clear default mgmt "
+ "encryption keys (ifname=%s keyidx=%d)"
+ "\n", ifname, i);
+ }
+ }
+ }
+#endif /* CONFIG_IEEE80211W */
}