summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoshan Pius <rpius@google.com>2016-04-04 09:05:09 -0700
committerRoshan Pius <rpius@google.com>2016-04-06 08:42:06 -0700
commit8761318ed126a64715fba2c456e53ad8dc345f57 (patch)
treee9c9540a29d7a1b68c1f4a0e8870c9e1ddb7c61c
parenta3baf0e3321192483a5c323a497c594a5c41ee03 (diff)
downloadlibhardware_legacy-8761318ed126a64715fba2c456e53ad8dc345f57.tar.gz
wifi_hal: Add flag to indicate tx power level stats
Adding a flag to indicate if the device supports tx power level stats reporting. While there, 1. Fix the 2 macros used to determine if a feature is supported or not. 2. Increase the number of tx levels to 256 BUG: 27969673 Change-Id: I314648cfaa7755dc48c1f790193c96254b4db691
-rw-r--r--include/hardware_legacy/wifi_hal.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/hardware_legacy/wifi_hal.h b/include/hardware_legacy/wifi_hal.h
index 293b5f7..3622eda 100644
--- a/include/hardware_legacy/wifi_hal.h
+++ b/include/hardware_legacy/wifi_hal.h
@@ -112,11 +112,16 @@ void wifi_get_error_info(wifi_error err, const char **msg); // return a pointer
#define WIFI_FEATURE_RSSI_MONITOR 0x80000 // RSSI Monitor
#define WIFI_FEATURE_MKEEP_ALIVE 0x100000 // WiFi mkeep_alive
#define WIFI_FEATURE_CONFIG_NDO 0x200000 // ND offload configure
+#define WIFI_FEATURE_TX_TRANSMIT_POWER 0x400000 // Capture Tx transmit power levels
// Add more features here
typedef int feature_set;
+#define IS_MASK_SET(mask, flags) ((flags & mask) == mask)
+
+#define IS_SUPPORTED_FEATURE(feature, featureSet) IS_MASK_SET(feature, featureSet)
+
/* Feature set */
wifi_error wifi_get_supported_feature_set(wifi_interface_handle handle, feature_set *set);