From 8761318ed126a64715fba2c456e53ad8dc345f57 Mon Sep 17 00:00:00 2001 From: Roshan Pius Date: Mon, 4 Apr 2016 09:05:09 -0700 Subject: [PATCH] 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 --- include/hardware_legacy/wifi_hal.h | 5 +++++ 1 file changed, 5 insertions(+) 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);