P2P: Fix HT40 secondary channel validation
This commit is contained in:
parent
8ea3dd21d2
commit
5254eb7e50
1 changed files with 2 additions and 2 deletions
|
@ -2101,11 +2101,11 @@ static int wpas_p2p_setup_channels(struct wpa_supplicant *wpa_s,
|
|||
continue;
|
||||
if (o->bw == BW40MINUS &&
|
||||
(!(flag & HOSTAPD_CHAN_HT40MINUS) ||
|
||||
!has_channel(mode, ch - o->inc, NULL)))
|
||||
!has_channel(mode, ch - 4, NULL)))
|
||||
continue;
|
||||
if (o->bw == BW40PLUS &&
|
||||
(!(flag & HOSTAPD_CHAN_HT40PLUS) ||
|
||||
!has_channel(mode, ch + o->inc, NULL)))
|
||||
!has_channel(mode, ch + 4, NULL)))
|
||||
continue;
|
||||
if (reg == NULL) {
|
||||
wpa_printf(MSG_DEBUG, "P2P: Add operating "
|
||||
|
|
Loading…
Reference in a new issue