|
@@ -4162,13 +4162,14 @@ static int wpas_p2p_setup_freqs(struct wpa_supplicant *wpa_s, int freq,
|
|
|
if (!p2p_supported_freq(wpa_s->global->p2p, freqs[i]))
|
|
|
continue;
|
|
|
|
|
|
- wpa_printf(MSG_DEBUG, "P2P: Try to force us to use frequency (%u MHz) which is already in use",
|
|
|
- *force_freq);
|
|
|
- *force_freq = freqs[i];
|
|
|
-
|
|
|
if (*pref_freq == 0 && num < wpa_s->num_multichan_concurrent) {
|
|
|
- wpa_printf(MSG_DEBUG, "P2P: Try to prefer a frequency we are already using");
|
|
|
- *pref_freq = *force_freq;
|
|
|
+ wpa_printf(MSG_DEBUG, "P2P: Try to prefer a frequency (%u MHz) we are already using",
|
|
|
+ freqs[i]);
|
|
|
+ *pref_freq = freqs[i];
|
|
|
+ } else {
|
|
|
+ wpa_printf(MSG_DEBUG, "P2P: Try to force us to use frequency (%u MHz) which is already in use",
|
|
|
+ freqs[i]);
|
|
|
+ *force_freq = freqs[i];
|
|
|
}
|
|
|
break;
|
|
|
}
|