aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpa.c
diff options
context:
space:
mode:
Diffstat (limited to 'wpa_supplicant/wpa.c')
-rw-r--r--wpa_supplicant/wpa.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/wpa_supplicant/wpa.c b/wpa_supplicant/wpa.c
index f390a36..95d57fd 100644
--- a/wpa_supplicant/wpa.c
+++ b/wpa_supplicant/wpa.c
@@ -1200,7 +1200,6 @@ static int wpa_supplicant_install_ptk(struct wpa_supplicant *wpa_s,
wpa_hexdump(MSG_DEBUG, "WPA: RSC", key_rsc, rsclen);
}
- wpa_s->keys_cleared = 0;
if (wpa_drv_set_key(wpa_s, alg, src_addr, 0, 1, key_rsc, rsclen,
(u8 *) &sm->ptk.tk1, keylen) < 0) {
wpa_printf(MSG_WARNING, "WPA: Failed to set PTK to the "
@@ -1292,7 +1291,6 @@ static int wpa_supplicant_install_gtk(struct wpa_supplicant *wpa_s,
memcpy(gtk_buf + 24, gd->gtk + 16, 8);
_gtk = gtk_buf;
}
- wpa_s->keys_cleared = 0;
if (sm->pairwise_cipher == WPA_CIPHER_NONE) {
if (wpa_drv_set_key(wpa_s, gd->alg,
(u8 *) "\xff\xff\xff\xff\xff\xff",