From edcaf16f9efdbdbc3c5af719f414323096800100 Mon Sep 17 00:00:00 2001 From: Peng Xu Date: Thu, 4 Apr 2019 16:03:20 -0700 Subject: [PATCH] P2P: Enable HE for both 2G and 5G bands 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 --- wpa_supplicant/ap.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c index 453c99dd5..4e1916942 100644 --- a/wpa_supplicant/ap.c +++ b/wpa_supplicant/ap.c @@ -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;