P2P: Fall back to no VHT when starting AP/P2P GO
authorAvraham Stern <avraham.stern@intel.com>
Mon, 25 Jan 2016 10:28:49 +0000 (12:28 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 6 Feb 2016 16:23:33 +0000 (18:23 +0200)
commit83fe38b011e7dfd6b73c40cef8c5d74d52ad3389
tree294c6f34892d56b555e2a506c5b518d446284ff2
parent360a9d5a8f8b6c35319229fc13fdf0a86700b023
P2P: Fall back to no VHT when starting AP/P2P GO

In cases where the bandwidth is not set when starting an AP/P2P GO,
the code tries to use 160 MHz or 80 MHz 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 40
MHz channel, if available, or a 20 MHz channel, if this is the maximum
available width.

Signed-off-by: Avraham Stern <avraham.stern@intel.com>
wpa_supplicant/ap.c