* d80211: clear ifsta->associated flag when authentication starts
@ 2006-12-21 22:32 David Kimdon
0 siblings, 0 replies; only message in thread
From: David Kimdon @ 2006-12-21 22:32 UTC (permalink / raw)
To: netdev; +Cc: John W. Linville, Jiri Benc, David Kimdon
[-- Attachment #1: auth-state-clear.patch --]
[-- Type: text/plain, Size: 875 bytes --]
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.
Signed-off-by: David Kimdon <david.kimdon@devicescape.com>
Index: wireless-dev/net/d80211/ieee80211_sta.c
===================================================================
--- wireless-dev.orig/net/d80211/ieee80211_sta.c
+++ 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);
}
--
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-12-21 22:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-21 22:32 d80211: clear ifsta->associated flag when authentication starts David Kimdon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).