wifi: Remove ACS check to set HT/VHT capability
Support to enable forced channel hotspot with VHT capability.
Bug: 162217050
Test: Manual Test
Test: atest -c VtsHalWifiHostapdV1_3TargetTest
Test: atest -c VtsHalWifiHostapdV1_2TargetTest
Test: atest -c VtsHalWifiHostapdV1_1TargetTest
Test: atest -c VtsHalWifiHostapdV1_0TargetTest
Change-Id: Ibf68339ccd6760aa05292e4c153f534804372b43
diff --git a/hostapd/hidl/1.3/hostapd.cpp b/hostapd/hidl/1.3/hostapd.cpp
index b68ddc7..9a33a77 100644
--- a/hostapd/hidl/1.3/hostapd.cpp
+++ b/hostapd/hidl/1.3/hostapd.cpp
@@ -358,7 +358,7 @@
if (((band & IHostapd::BandMask::BAND_5_GHZ) != 0)
|| ((band & IHostapd::BandMask::BAND_6_GHZ) != 0)) {
hw_mode_as_string = "hw_mode=any";
- if (iface_params.V1_1.V1_0.channelParams.enableAcs) {
+ if (iface_params.V1_1.V1_0.hwModeParams.enable80211AC) {
ht_cap_vht_oper_chwidth_as_string =
"ht_capab=[HT40+]\n"
"vht_oper_chwidth=1";
@@ -370,7 +370,7 @@
if (((band & IHostapd::BandMask::BAND_5_GHZ) != 0)
|| ((band & IHostapd::BandMask::BAND_6_GHZ) != 0)) {
hw_mode_as_string = "hw_mode=a";
- if (iface_params.V1_1.V1_0.channelParams.enableAcs) {
+ if (iface_params.V1_1.V1_0.hwModeParams.enable80211AC) {
ht_cap_vht_oper_chwidth_as_string =
"ht_capab=[HT40+]\n"
"vht_oper_chwidth=1";