2012-01-09 11:53:10

by Rajkumar Manoharan

[permalink] [raw]
Subject: [RFC] mac80211: clear monitoring flag at connection reset

The connection monitoring probe will be postponded on receiving
tx ack status whereas the connection probe flag is not cleared.
On an idle state, when we start sending probing frame, there
is a posibility to miss the first probing frame. So lets clear
the flag also during connection probe reset.

Signed-off-by: Rajkumar Manoharan <[email protected]>
---
net/mac80211/mlme.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index ecb4c84..1f416a0 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -148,6 +148,7 @@ void ieee80211_sta_reset_conn_monitor(struct ieee80211_sub_if_data *sdata)
round_jiffies_up(jiffies + IEEE80211_CONNECTION_IDLE_TIME));

ifmgd->probe_send_count = 0;
+ ifmgd->flags &= ~IEEE80211_STA_CONNECTION_POLL;
}

static int ecw2cw(int ecw)
--
1.7.8.3