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>
This commit is contained in:
Victor Goldenshtein 2015-03-19 16:41:39 +02:00 committed by Jouni Malinen
parent e7a296ba13
commit 6ceea4c3cb

View File

@ -2864,6 +2864,14 @@ static void wpa_supplicant_update_channel_list(
ifs, &ifs->hw.num_modes, &ifs->hw.flags); 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);
}
} }