P2P: Scan all channels if GO is not found from common channels
This is not supposed to happen, but in theory, the GO may end up changing its channels at some point. While it would be reasonable to use one of the common channels, GO may be forced to use another channel. The most likely reason for this would be if the P2P client is enforcing only a single channel to be used (e.g., to avoid multi-channel concurrent operations).
This commit is contained in:
parent
3f4ce13fde
commit
2af1c18735
1 changed files with 2 additions and 1 deletions
|
@ -401,7 +401,8 @@ static void wpa_supplicant_scan(void *eloop_ctx, void *timeout_ctx)
|
|||
params.freqs = os_zalloc(2 * sizeof(int));
|
||||
if (params.freqs)
|
||||
params.freqs[0] = wpa_s->go_params->freq;
|
||||
} else if (wpa_s->go_params->freq_list[0]) {
|
||||
} else if (wpa_s->p2p_in_provisioning < 8 &&
|
||||
wpa_s->go_params->freq_list[0]) {
|
||||
wpa_printf(MSG_DEBUG, "P2P: Scan only common "
|
||||
"channels");
|
||||
int_array_concat(¶ms.freqs,
|
||||
|
|
Loading…
Reference in a new issue