[PATCH 4/5] P2P: Fall-back to no VHT when starting AP/P2P GO

Ilan Peer ilan.peer at intel.com
Mon Jan 25 02:28:49 PST 2016


From: Avraham Stern <avraham.stern at intel.com>

In cases that the bandwidth is not set when starting an AP/P2P GO,
the code tries to use 160MHz or 80MHz channels. As a result, the
AP/P2P GO configuration is set to use these channel widths even if
they are not available, which may results in failing to start the
AP/P2P GO.

Fix this by changing the AP/P2P GO configuration not to use
VHT channels when they are not available. In this case the AP/P2P GO
will use a 40MHz channel if available, or a 20MHz channel if this is
the maximum available width.

Signed-off-by: Avraham Stern <avraham.stern at intel.com>
---
 wpa_supplicant/ap.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c
index 105fb1c..98b9596 100644
--- a/wpa_supplicant/ap.c
+++ b/wpa_supplicant/ap.c
@@ -92,6 +92,7 @@ no_vht:
 	conf->vht_oper_centr_freq_seg0_idx =
 		conf->channel + conf->secondary_channel * 2;
 #endif /* CONFIG_P2P */
+	conf->vht_oper_chwidth = VHT_CHANWIDTH_USE_HT;
 }
 #endif /* CONFIG_IEEE80211N */
 
-- 
1.9.1




More information about the Hostap mailing list