]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Do not use set_tx=1 when clearing keys with set_key
authorJouni Malinen <j@w1.fi>
Sun, 9 Jan 2011 10:18:36 +0000 (12:18 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 9 Jan 2011 10:18:36 +0000 (12:18 +0200)
src/ap/hostapd.c

index b39a9d54919eb516254a66727f18966006f65bfe..6c301ed803118a62382795ea206114f10c36e951 100644 (file)
@@ -136,7 +136,7 @@ static void hostapd_broadcast_key_clear_iface(struct hostapd_data *hapd,
 
        for (i = 0; i < NUM_WEP_KEYS; i++) {
                if (hostapd_drv_set_key(ifname, hapd, WPA_ALG_NONE, NULL, i,
-                                       i == 0 ? 1 : 0, NULL, 0, NULL, 0)) {
+                                       0, NULL, 0, NULL, 0)) {
                        wpa_printf(MSG_DEBUG, "Failed to clear default "
                                   "encryption keys (ifname=%s keyidx=%d)",
                                   ifname, i);
@@ -146,7 +146,7 @@ static void hostapd_broadcast_key_clear_iface(struct hostapd_data *hapd,
        if (hapd->conf->ieee80211w) {
                for (i = NUM_WEP_KEYS; i < NUM_WEP_KEYS + 2; i++) {
                        if (hostapd_drv_set_key(ifname, hapd, WPA_ALG_NONE,
-                                               NULL, i, i == 0 ? 1 : 0, NULL,
+                                               NULL, i, 0, NULL,
                                                0, NULL, 0)) {
                                wpa_printf(MSG_DEBUG, "Failed to clear "
                                           "default mgmt encryption keys "