All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mac80211: inform userspace of probe/auth/assoc timeout
@ 2008-10-16 19:44 Johannes Berg
  2008-10-19  6:01 ` Kalle Valo
  0 siblings, 1 reply; 5+ messages in thread
From: Johannes Berg @ 2008-10-16 19:44 UTC (permalink / raw)
  To: John Linville; +Cc: Dan Williams, Jouni Malinen, linux-wireless

I noticed that when for some reason [1] the probe or auth times
out, wpa_supplicant doesn't realise this and only tries the next
AP when it runs into its own timeout, which is ten seconds, and
that's quite long. Fix this by making mac80211 notify userspace
that it didn't associate.

[1] my wrt350n in mixed B/G/HT mode often runs into this, maybe
it's because one of the antennas is broken off and for whatever
reason it decides to use that antenna to transmit the response
frames (auth, probe); I do see beacons fine so it's not totally
broken. Works fine in pure-G mode.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
---
Might be worth backporting to stable?

 net/mac80211/mlme.c |    3 +++
 1 file changed, 3 insertions(+)

--- everything.orig/net/mac80211/mlme.c	2008-10-16 20:30:06.000000000 +0200
+++ everything/net/mac80211/mlme.c	2008-10-16 21:40:58.000000000 +0200
@@ -763,6 +763,7 @@ static void ieee80211_direct_probe(struc
 		printk(KERN_DEBUG "%s: direct probe to AP %s timed out\n",
 		       sdata->dev->name, print_mac(mac, ifsta->bssid));
 		ifsta->state = IEEE80211_STA_MLME_DISABLED;
+		ieee80211_sta_send_apinfo(sdata, ifsta);
 		return;
 	}
 
@@ -795,6 +796,7 @@ static void ieee80211_authenticate(struc
 		       " timed out\n",
 		       sdata->dev->name, print_mac(mac, ifsta->bssid));
 		ifsta->state = IEEE80211_STA_MLME_DISABLED;
+		ieee80211_sta_send_apinfo(sdata, ifsta);
 		return;
 	}
 
@@ -917,6 +919,7 @@ static void ieee80211_associate(struct i
 		       " timed out\n",
 		       sdata->dev->name, print_mac(mac, ifsta->bssid));
 		ifsta->state = IEEE80211_STA_MLME_DISABLED;
+		ieee80211_sta_send_apinfo(sdata, ifsta);
 		return;
 	}
 



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-10-19 21:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-16 19:44 [PATCH] mac80211: inform userspace of probe/auth/assoc timeout Johannes Berg
2008-10-19  6:01 ` Kalle Valo
2008-10-19 10:16   ` Johannes Berg
2008-10-19 19:18   ` Kalle Valo
2008-10-19 21:35     ` Tomas Winkler

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.