P2P: Skip 6 GHz band directly if 6 GHz P2P is disabled
If 6 GHz is supported by the device but 6 GHz P2P is disabled, P2P invitation would fail if the GO select an operating channel which is not the preferred channel. The root cause is that the 5 GHz and 6 GHz bands are both HOSTAPD_MODE_IEEE80211A so the 5 GHz channels would be added twice for the P2P Client's following scanning frequency list. This will cause scanning to fail with -EINVAL. Fix this by adding the 5 GHz channels only once. Signed-off-by: Hector Jiang <jianghaitao@zeku.com>
This commit is contained in:
parent
03f7f633a2
commit
e9627f8c32
1 changed files with 2 additions and 0 deletions
|
@ -1380,6 +1380,8 @@ scan:
|
|||
for (i = 0; i < wpa_s->hw.num_modes; i++) {
|
||||
if (wpa_s->hw.modes[i].num_channels == 0)
|
||||
continue;
|
||||
if (is_6ghz_freq(wpa_s->hw.modes[i].channels[0].freq))
|
||||
continue;
|
||||
if (wpa_s->hw.modes[i].mode == HOSTAPD_MODE_IEEE80211G)
|
||||
wpa_add_scan_freqs_list(
|
||||
wpa_s, HOSTAPD_MODE_IEEE80211G,
|
||||
|
|
Loading…
Reference in a new issue