projects
/
libeap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d526398
)
Clear BIP keys, too, when removing broadcast keys with MFP enabled
author
Jouni Malinen
<jouni.malinen@atheros.com>
Wed, 31 Dec 2008 15:49:43 +0000
(17:49 +0200)
committer
Jouni Malinen
<j@w1.fi>
Wed, 31 Dec 2008 15:49:43 +0000
(17:49 +0200)
hostapd/hostapd.c
patch
|
blob
|
history
diff --git
a/hostapd/hostapd.c
b/hostapd/hostapd.c
index
6a0c131
..
1da0bf5
100644
(file)
--- 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 */
}