mac80211: fix oper channel timestamp updation
authorRajkumar Manoharan <rmanohar@qca.qualcomm.com>
Tue, 27 Mar 2012 05:31:06 +0000 (11:01 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 28 Mar 2012 18:25:37 +0000 (14:25 -0400)
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>
net/mac80211/scan.c

index 33cd169013781321a813e10ebfb474c9595bd857..c70e176771359b5e9371df1da486b29a157084f7 100644 (file)
@@ -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;
 
This page took 0.027583 seconds and 5 git commands to generate.