AP: Check driver support while auto-selecting bandwidth for AP/P2P GO

If the maximum operating channel width for AP/P2P GO is not specified,
it is auto-selected during configuration. While selecting the channel
width, if VHT is supported and 160 MHz channels are available, 160 MHz
channel width is preferred to 80 MHz.

During the selection of the channel width, the corresponding driver
capabilities were not checked. As a result, the AP/P2P GO configuration
was set to use the available 160 MHz channels even if the driver did not
have capability to support the 160 MHz channel width causing failure to
start the AP/P2P GO.

Fix this by checking the driver support for the 160 MHz channel width
while selecting the channel width for AP/P2P GO.

bug: 172189824
Test: Wi-Fi direct can create connection for country SN
Change-Id: I167edde773d553603233524d1b848cb983299725
Signed-off-by: Sreeramya Soratkal <ssramya@codeaurora.org>
1 file changed