aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/events.c
diff options
context:
space:
mode:
authorVictor Goldenshtein <victorg@ti.com>2015-03-19 14:41:39 (GMT)
committerJouni Malinen <j@w1.fi>2015-03-20 13:56:59 (GMT)
commit6ceea4c3cb829360c3846c4d31237d058d3a7b99 (patch)
tree3c57a096ab72d8bf22bb59dcf78f8d0e1975b86d /wpa_supplicant/events.c
parente7a296ba133a283aa85adfa5a00321931aada03d (diff)
downloadhostap-6ceea4c3cb829360c3846c4d31237d058d3a7b99.zip
hostap-6ceea4c3cb829360c3846c4d31237d058d3a7b99.tar.gz
hostap-6ceea4c3cb829360c3846c4d31237d058d3a7b99.tar.bz2
Restart sched_scan on channel list change
The channel list can be changed as a result of arriving beacon hints during normal scan or as a result of local Reg-Domain change. Some passive channels can become active and needs to be reconfigured accordingly for the scheduled scan. This fixes the connection to hidden SSIDs on 5 GHz band during default Reg-Domain 00 (world roaming). Signed-off-by: Victor Goldenshtein <victorg@ti.com> Signed-off-by: Eliad Peller <eliad@wizery.com>
Diffstat (limited to 'wpa_supplicant/events.c')
-rw-r--r--wpa_supplicant/events.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index d275ca4..45edec6 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -2864,6 +2864,14 @@ static void wpa_supplicant_update_channel_list(
ifs, &ifs->hw.num_modes, &ifs->hw.flags);
}
}
+
+ /* Restart sched_scan with updated channel list */
+ if (wpa_s->sched_scanning) {
+ wpa_dbg(wpa_s, MSG_DEBUG,
+ "Channel list changed restart sched scan.");
+ wpa_supplicant_cancel_sched_scan(wpa_s);
+ wpa_supplicant_req_scan(wpa_s, 0, 0);
+ }
}