aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorMasashi Honma <honma@ictec.co.jp>2009-10-12 04:19:01 (GMT)
committerJouni Malinen <j@w1.fi>2009-11-22 19:04:39 (GMT)
commita1f50ce752c60f56b8a22a55cb7223643426dbf5 (patch)
tree45d682104af1d20916c3ee980793664bceb5655d /wpa_supplicant
parenta7d0a98de2d5d5e90d05dc39f9f91ca88611e16a (diff)
downloadhostap-06-a1f50ce752c60f56b8a22a55cb7223643426dbf5.zip
hostap-06-a1f50ce752c60f56b8a22a55cb7223643426dbf5.tar.gz
hostap-06-a1f50ce752c60f56b8a22a55cb7223643426dbf5.tar.bz2
MFP: Clear IGTK
The fourth and fifth keys are used as IGTK for management frame protection. This patch clears these keys. I have tested with linux kernel 2.6.31.2. (cherry picked from commit 0e27f655f1275a98a0081f4d41f551af254ad38f)
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/wpa_supplicant.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c
index 0590901..ad506ea 100644
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -421,6 +421,10 @@ void wpa_clear_keys(struct wpa_supplicant *wpa_s, const u8 *addr)
wpa_drv_set_key(wpa_s, WPA_ALG_NONE, bcast, 1, 0, NULL, 0, NULL, 0);
wpa_drv_set_key(wpa_s, WPA_ALG_NONE, bcast, 2, 0, NULL, 0, NULL, 0);
wpa_drv_set_key(wpa_s, WPA_ALG_NONE, bcast, 3, 0, NULL, 0, NULL, 0);
+#ifdef CONFIG_IEEE80211W
+ wpa_drv_set_key(wpa_s, WPA_ALG_NONE, bcast, 4, 0, NULL, 0, NULL, 0);
+ wpa_drv_set_key(wpa_s, WPA_ALG_NONE, bcast, 5, 0, NULL, 0, NULL, 0);
+#endif /* CONFIG_IEEE80211W */
if (addr) {
wpa_drv_set_key(wpa_s, WPA_ALG_NONE, addr, 0, 0, NULL, 0, NULL,
0);