linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC/RFT] mac80211: stop connection monitor on dissassoc
@ 2012-06-12  9:58 Stanislaw Gruszka
  2012-06-12 10:05 ` Spinadel, David
  0 siblings, 1 reply; 5+ messages in thread
From: Stanislaw Gruszka @ 2012-06-12  9:58 UTC (permalink / raw)
  To: linux-wireless, David Spinadel; +Cc: Johannes Berg

Looks like is possible to do not kick of deferred scan when connection
monitoring is pending and on the same time we disconnect.

David, I can not recreate this problem locally, does below patch
fix the problem on your tests.

Thanks
Stanislaw

---
 net/mac80211/mlme.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index d7134c1..1e20748 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -1425,6 +1425,8 @@ static void ieee80211_set_disassoc(struct ieee80211_sub_if_data *sdata,
 	del_timer_sync(&sdata->u.mgd.bcn_mon_timer);
 	del_timer_sync(&sdata->u.mgd.timer);
 	del_timer_sync(&sdata->u.mgd.chswitch_timer);
+
+	ieee80211_stop_poll(sdata);
 }
 
 void ieee80211_sta_rx_notify(struct ieee80211_sub_if_data *sdata,
-- 
1.7.1


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

end of thread, other threads:[~2012-06-12 11:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-12  9:58 [RFC/RFT] mac80211: stop connection monitor on dissassoc Stanislaw Gruszka
2012-06-12 10:05 ` Spinadel, David
2012-06-12 10:20   ` Stanislaw Gruszka
2012-06-12 11:01     ` Johannes Berg
2012-06-12 11:02       ` Spinadel, David

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).