Skip to contentSkip to conversation

d80211: clear ifsta->associated flag when authentication starts

PATCH David Kimdon 1 participant 1 message Dec 21, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

The 'associated' flag might be set if a previous association did not end cleanly. If the 'associated' flag is left set here then when association succeeds ieee80211_set_associated() will think there is nothing to report and will not inform userspace of the event.

net/d80211/ieee80211_sta.c +1 -1
Index: wireless-dev/net/d80211/ieee80211_sta.c
===================================================================
@@ -1960,7 +1960,7 @@ static void ieee80211_sta_new_auth(struc
 	printk(KERN_DEBUG "%s: Initial auth_alg=%d\n", dev->name,
 	       ifsta->auth_alg);
 	ifsta->auth_transaction = -1;
-	ifsta->auth_tries = ifsta->assoc_tries = 0;
+	ifsta->associated = ifsta->auth_tries = ifsta->assoc_tries = 0;
 	ieee80211_authenticate(dev, ifsta);
 }
 

--