summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuang Luong <qal@google.com>2020-12-14 13:00:03 -0800
committerQuang Luong <qal@google.com>2020-12-15 05:49:48 +0000
commitf499981aa071299e6da674b5cbe021ae0d0b2a36 (patch)
tree11da071840f3add7b98faecffd28ef4ee60e84bb
parent85f84d379618f9387fe7d4cbbce184987e026cef (diff)
downloadlibhardware_legacy-f499981aa071299e6da674b5cbe021ae0d0b2a36.tar.gz
libhardware_legacy(wifi): Add enum for wifi coex restrictions
Add custom enum for wifi coex since IfaceType is not suitable for bitmasks. Bug: 153651001 Test: build Change-Id: I58b55c64f5358ff26fc45451b66e8818bb3c3d30
-rw-r--r--include/hardware_legacy/wifi_hal.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/hardware_legacy/wifi_hal.h b/include/hardware_legacy/wifi_hal.h
index 7c56ecd..acf7567 100644
--- a/include/hardware_legacy/wifi_hal.h
+++ b/include/hardware_legacy/wifi_hal.h
@@ -413,6 +413,12 @@ typedef struct wlan_driver_wake_reason_cnt_t {
#define WIFI_COEX_NO_POWER_CAP (int32_t)0x7FFFFFF
+typedef enum {
+ WIFI_AWARE = 1 << 0,
+ SOFTAP = 1 << 1,
+ WIFI_DIRECT = 1 << 2
+} wifi_coex_restriction;
+
/**
* Representation of a Wi-Fi channel to be avoided for Wi-Fi coex channel avoidance.
*
@@ -688,6 +694,9 @@ typedef struct {
/**
* Invoked to indicate that the following list of wifi_coex_unsafe_channel should be avoided
* with the specified restrictions.
+ * @param unsafeChannels list of current |wifi_coex_unsafe_channel| to avoid.
+ * @param restrictions bitmask of |wifi_coex_restriction| indicating wifi interfaces to
+ * restrict from the current unsafe channels.
*/
wifi_error (*wifi_set_coex_unsafe_channels)(wifi_handle handle, u32 num_channels,
wifi_coex_unsafe_channel *unsafeChannels,