[lkml]   [2010]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[057/289] mac80211: reset probe send counter upon connection timer reset
2.6.36-stable review patch.  If anyone has any objections, please let us know.


From: Luis R. Rodriguez <>

commit 0c699c3a75d4e8d0d2c317f83048d8fd3ffe692a upstream.

Upon beacon loss we send probe requests after 30 seconds of idle
time and we wait for each probe response 1/2 second. We send a
total of 3 probe requests before giving up on the AP. In the case
that we reset the connection idle monitor we should reset the probe
requests count to 0. Right now this won't help in any way but
the next patch will.

This patch has fixes for stable kernel [2.6.35+].

Cc: Paul Stewart <>
Cc: Amod Bodas <>
Signed-off-by: Luis R. Rodriguez <>
Signed-off-by: John W. Linville <>
Signed-off-by: Greg Kroah-Hartman <>

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

--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -120,11 +120,15 @@ void ieee80211_sta_reset_beacon_monitor(

void ieee80211_sta_reset_conn_monitor(struct ieee80211_sub_if_data *sdata)
+ struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
if (sdata->local->hw.flags & IEEE80211_HW_CONNECTION_MONITOR)

round_jiffies_up(jiffies + IEEE80211_CONNECTION_IDLE_TIME));
+ ifmgd->probe_send_count = 0;

static int ecw2cw(int ecw)

 \ /
  Last update: 2010-12-08 02:53    [W:0.581 / U:18.872 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site