From: Jouni Malinen Date: Sun, 9 Jan 2011 10:18:36 +0000 (+0200) Subject: Do not use set_tx=1 when clearing keys with set_key X-Git-Tag: hostap-1-bp~649 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dff99f8ec16c20c3269745cb6a3eb551cfa76171;p=thirdparty%2Fhostap.git Do not use set_tx=1 when clearing keys with set_key --- diff --git a/src/ap/hostapd.c b/src/ap/hostapd.c index b39a9d549..6c301ed80 100644 --- a/src/ap/hostapd.c +++ b/src/ap/hostapd.c @@ -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 "