aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorVictor Goldenshtein <victorg@ti.com>2012-11-12 17:32:11 +0200
committerArik Nemtsov <arik@wizery.com>2012-11-13 09:29:31 +0200
commit865eb5dc1f399c493a002a0f221f23c96799ed65 (patch)
treee29fbbc9c9dd1eb5ae114920dd59495cad8ba277 /wpa_supplicant
parent8975c166e26ccda2b89eb8b7d3d796eb4ee0e186 (diff)
downloadexternal_wpa_supplicant_8_ti-865eb5dc1f399c493a002a0f221f23c96799ed65.zip
external_wpa_supplicant_8_ti-865eb5dc1f399c493a002a0f221f23c96799ed65.tar.gz
external_wpa_supplicant_8_ti-865eb5dc1f399c493a002a0f221f23c96799ed65.tar.bz2
wpa_s: 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 shall be reconfigured accordingly for the scheduled scan. This fixes the connection to hidden SSIDs on 5Ghz band during default Reg-Domain 00 (world roaming). Signed-off-by: Victor Goldenshtein <victorg@ti.com>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/events.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index c735da3..e97939e 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -2847,6 +2847,13 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event,
#ifdef CONFIG_P2P
wpas_p2p_update_channel_list(wpa_s);
#endif /* CONFIG_P2P */
+
+ /* Restart the 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_req_sched_scan(wpa_s);
+ }
break;
case EVENT_INTERFACE_UNAVAILABLE:
#ifdef CONFIG_P2P