summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruno Martins <bgcngm@gmail.com>2019-10-05 00:01:58 +0100
committerRashed Abdel-Tawab <rashedabdeltawab@gmail.com>2019-11-05 22:30:14 +0100
commitf59f921a5e9f059a6ce06f3a8e11982241ba54b8 (patch)
tree6f72c7287469e4f1e3d659411ddd69c7015e4cbf
parent8a47148339c77a53d76171aaf3b9668bf723cc2f (diff)
downloadhardware_lineage_interfaces-f59f921a5e9f059a6ce06f3a8e11982241ba54b8.tar.gz
hardware_lineage_interfaces-f59f921a5e9f059a6ce06f3a8e11982241ba54b8.tar.bz2
hardware_lineage_interfaces-f59f921a5e9f059a6ce06f3a8e11982241ba54b8.zip
wifi: Disable softAP MAC randomization by default
This is a legacy HAL and as such, the legacy devices using it won't really be able to enable this feature. Disable by default so to avoid having to explicitly do it in the device trees. Change-Id: I15173f5d6d1f918e6a463145b4bbbf4e1b310479
-rw-r--r--wifi/1.0-legacy/Android.mk4
-rw-r--r--wifi/1.0-legacy/wifi_feature_flags.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/wifi/1.0-legacy/Android.mk b/wifi/1.0-legacy/Android.mk
index d1cfecc..0d05cff 100644
--- a/wifi/1.0-legacy/Android.mk
+++ b/wifi/1.0-legacy/Android.mk
@@ -33,8 +33,8 @@ endif
ifdef WIFI_HIDL_FEATURE_DISABLE_AP
LOCAL_CPPFLAGS += -DWIFI_HIDL_FEATURE_DISABLE_AP
endif
-ifdef WIFI_HIDL_FEATURE_DISABLE_AP_MAC_RANDOMIZATION
-LOCAL_CPPFLAGS += -DWIFI_HIDL_FEATURE_DISABLE_AP_MAC_RANDOMIZATION
+ifdef WIFI_HIDL_FEATURE_AP_MAC_RANDOMIZATION
+LOCAL_CPPFLAGS += -DWIFI_HIDL_FEATURE_AP_MAC_RANDOMIZATION
endif
# Allow implicit fallthroughs in wifi_legacy_hal.cpp until they are fixed.
LOCAL_CFLAGS += -Wno-error=implicit-fallthrough
diff --git a/wifi/1.0-legacy/wifi_feature_flags.cpp b/wifi/1.0-legacy/wifi_feature_flags.cpp
index 7212cfa..f47dae8 100644
--- a/wifi/1.0-legacy/wifi_feature_flags.cpp
+++ b/wifi/1.0-legacy/wifi_feature_flags.cpp
@@ -144,11 +144,11 @@ static const std::vector<IWifiChip::ChipMode> kChipModes{
#undef P2P
#undef NAN
-#ifdef WIFI_HIDL_FEATURE_DISABLE_AP_MAC_RANDOMIZATION
+#ifndef WIFI_HIDL_FEATURE_AP_MAC_RANDOMIZATION
static const bool wifiHidlFeatureDisableApMacRandomization = true;
#else
static const bool wifiHidlFeatureDisableApMacRandomization = false;
-#endif // WIFI_HIDL_FEATURE_DISABLE_AP
+#endif // WIFI_HIDL_FEATURE_AP_MAC_RANDOMIZATION
WifiFeatureFlags::WifiFeatureFlags() {}