From 865eb5dc1f399c493a002a0f221f23c96799ed65 Mon Sep 17 00:00:00 2001 From: Victor Goldenshtein Date: Mon, 12 Nov 2012 17:32:11 +0200 Subject: 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 --- wpa_supplicant/events.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'wpa_supplicant') 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 -- cgit v1.1