Parcourir la source

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).
Jouni Malinen il y a 15 ans
Parent
commit
2af1c18735
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      wpa_supplicant/scan.c

+ 2 - 1
wpa_supplicant/scan.c

@@ -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(&params.freqs,