Allow AP mode configuration with VHT enabled on 2.4 GHz
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 4 Nov 2013 09:51:56 +0000 (11:51 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 4 Nov 2013 09:51:56 +0000 (11:51 +0200)
commitd4f1a347ceca31fd9cf14070fd000235d5f4e9c1
tree0ace6a869df5646aeda2d476e445f6b25329678d
parent8454e1fd33b3fcfdab4dfae181fcc1ada189f304
Allow AP mode configuration with VHT enabled on 2.4 GHz

hostapd_set_freq_param() rejected the 20 MHz channel case with
vht_enabled due to the existing validation step including only 5 GHz (to
be more exact, only >= 5000 MHz). While the behavior may not be fully
defined for 2.4 GHz, we can enable this based on driver capability
advertisement to fix automatic VHT selection for P2P use cases.
mac80211_hwsim advertises VHT for 2.4 GHz band and that resulted in
failures when trying to start GO on that band with vht=1 parameter.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
src/ap/ap_drv_ops.c