hostapd: Fix non-acs invalid band value
Root cause: Band design in V1_0 is enum but in V1_2 change to bit mask.
Solution: Use 1.2 BandMask for ACS and non-acs
Bug: 147336058
Test: vts-tradefed run commandAndExit vts-hal --skip-all-system-status-check --primary-abi-only --skip-preconditions --module VtsHalWifiHostapdV1_2Target -l INFO
Change-Id: I7bce3adeebbb1c2f24c475c3d201a02475854601
diff --git a/hostapd/hidl/1.2/hostapd.cpp b/hostapd/hidl/1.2/hostapd.cpp
index 71be483..c167673 100644
--- a/hostapd/hidl/1.2/hostapd.cpp
+++ b/hostapd/hidl/1.2/hostapd.cpp
@@ -153,11 +153,7 @@
std::string hw_mode_as_string;
std::string ht_cap_vht_oper_chwidth_as_string;
unsigned int band = 0;
- if (iface_params.V1_1.V1_0.channelParams.enableAcs) {
- band |= iface_params.channelParams.bandMask;
- } else {
- band |= iface_params.V1_1.V1_0.channelParams.band;
- }
+ band |= iface_params.channelParams.bandMask;
if ((band & IHostapd::BandMask::BAND_2_GHZ) != 0) {
if ((band & IHostapd::BandMask::BAND_5_GHZ) != 0) {