]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Enable HE for both 2G and 5G bands
authorPeng Xu <pxu@codeaurora.org>
Thu, 4 Apr 2019 23:03:20 +0000 (16:03 -0700)
committerJouni Malinen <j@w1.fi>
Fri, 5 Apr 2019 17:59:48 +0000 (20:59 +0300)
Previously HE was only enabled for a 2G P2P GO. This change enables HE
for both 2G and 5G P2P GO.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
wpa_supplicant/ap.c

index 453c99dd512dfe61b05f06c82c725da83ea9a3c0..4e191694296bbb7d7b2ae814d84e29cd7e775544 100644 (file)
@@ -334,10 +334,13 @@ static int wpa_supplicant_conf_ap(struct wpa_supplicant *wpa_s,
                        list[8] = -1;
                }
                conf->supported_rates = list;
+       }
+
 #ifdef CONFIG_IEEE80211AX
+       if (ssid->mode == WPAS_MODE_P2P_GO ||
+           ssid->mode == WPAS_MODE_P2P_GROUP_FORMATION)
                conf->ieee80211ax = ssid->he;
 #endif /* CONFIG_IEEE80211AX */
-       }
 
        bss->isolate = !wpa_s->conf->p2p_intra_bss;
        bss->force_per_enrollee_psk = wpa_s->global->p2p_per_sta_psk;