aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorRajkumar Manoharan <rmanohar@qca.qualcomm.com>2012-03-27 11:01:06 +0530
committerJohn W. Linville <linville@tuxdriver.com>2012-03-28 14:25:37 -0400
commitde312db345f9770b64ff39ef5a7f86f6358e93cc (patch)
treeaa396764417297ff98b784e589d506f140103a6b /net
parenta4d6367fa77fb604ce62582e1c0998e0ed098927 (diff)
downloadlinux-hpc-de312db345f9770b64ff39ef5a7f86f6358e93cc.tar.gz
mac80211: fix oper channel timestamp updation
Whenever the station informs the AP that it is about to leave the operating channel, the timestamp should be recorded. It is handled in scan resume but not in scan start. Fix that. Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net')
-rw-r--r--net/mac80211/scan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/scan.c b/net/mac80211/scan.c
index 33cd1690137813..c70e176771359b 100644
--- a/net/mac80211/scan.c
+++ b/net/mac80211/scan.c
@@ -370,7 +370,7 @@ static int ieee80211_start_sw_scan(struct ieee80211_local *local)
*/
drv_sw_scan_start(local);
- local->leave_oper_channel_time = 0;
+ local->leave_oper_channel_time = jiffies;
local->next_scan_state = SCAN_DECISION;
local->scan_channel_idx = 0;