mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
P2P: Clean up wpas_p2p_setup_freqs() debug message
It is confusing to talk about current operating channels being unavailable for P2P when there are no current operating channels. Make the debug message easier to understand. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
7d669cf7a1
commit
107a89448c
@ -4175,9 +4175,12 @@ static int wpas_p2p_setup_freqs(struct wpa_supplicant *wpa_s, int freq,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (i == num) {
|
if (i == num) {
|
||||||
if (num < wpa_s->num_multichan_concurrent) {
|
if (num < wpa_s->num_multichan_concurrent && num > 0) {
|
||||||
wpa_printf(MSG_DEBUG, "P2P: Current operating channels are not available for P2P. Try to use another channel");
|
wpa_printf(MSG_DEBUG, "P2P: Current operating channels are not available for P2P. Try to use another channel");
|
||||||
*force_freq = 0;
|
*force_freq = 0;
|
||||||
|
} else if (num < wpa_s->num_multichan_concurrent) {
|
||||||
|
wpa_printf(MSG_DEBUG, "P2P: No current operating channels - try to use a new channel");
|
||||||
|
*force_freq = 0;
|
||||||
} else {
|
} else {
|
||||||
wpa_printf(MSG_DEBUG, "P2P: All channels are in use and none of them are P2P enabled. Cannot start P2P group");
|
wpa_printf(MSG_DEBUG, "P2P: All channels are in use and none of them are P2P enabled. Cannot start P2P group");
|
||||||
res = -2;
|
res = -2;
|
||||||
|
Loading…
Reference in New Issue
Block a user