summaryrefslogtreecommitdiffstats
path: root/bcmdhd/wifi_hal/common.h
diff options
context:
space:
mode:
authorAshwin <ashwin.bhat@broadcom.com>2015-03-19 16:07:39 -0700
committerAshwin <ashwin.bhat@broadcom.com>2015-03-19 16:07:39 -0700
commit89a9a4cffbcee6af504c61ff575a008194070c82 (patch)
tree8a40bed60694d51541e4079d9b4490543cee64c5 /bcmdhd/wifi_hal/common.h
parent886a7c99f8664295fe233034cac84d6253324641 (diff)
downloadhardware_broadcom_wlan-89a9a4cffbcee6af504c61ff575a008194070c82.zip
hardware_broadcom_wlan-89a9a4cffbcee6af504c61ff575a008194070c82.tar.gz
hardware_broadcom_wlan-89a9a4cffbcee6af504c61ff575a008194070c82.tar.bz2
ePNO changes
Support for ePNO changes. Can send ePNO SSIDs to driver and get results Exponential backoff will be added in the next update Change-Id: I6a420811c0dc503ccb2d8d1a502dbdeedcf9ca2a Signed-off-by: Ashwin <ashwin.bhat@broadcom.com>
Diffstat (limited to 'bcmdhd/wifi_hal/common.h')
-rw-r--r--bcmdhd/wifi_hal/common.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/bcmdhd/wifi_hal/common.h b/bcmdhd/wifi_hal/common.h
index f94c16d..be1d10a 100644
--- a/bcmdhd/wifi_hal/common.h
+++ b/bcmdhd/wifi_hal/common.h
@@ -80,9 +80,9 @@ typedef enum {
WIFI_SUBCMD_GET_FEATURE_SET_MATRIX, /* 0x100B */
WIFI_SUBCMD_SET_PNO_RANDOM_MAC_OUI, /* 0x100C */
WIFI_SUBCMD_NODFS_SET, /* 0x100D */
-
+ WIFI_SUBCMD_SET_COUNTRY, /* 0x100E */
/* Add more sub commands here */
-
+ GSCAN_SUBCMD_SET_EPNO_SSID, /* 0x100F */
GSCAN_SUBCMD_MAX /* 0x100D */
} WIFI_SUB_COMMAND;
@@ -96,7 +96,8 @@ typedef enum {
GSCAN_EVENT_FULL_SCAN_RESULTS,
RTT_EVENT_COMPLETE,
GSCAN_EVENT_COMPLETE_SCAN,
- GSCAN_EVENT_HOTLIST_RESULTS_LOST
+ GSCAN_EVENT_HOTLIST_RESULTS_LOST,
+ GSCAN_EVENT_EPNO_EVENT
} WIFI_EVENT;
typedef void (*wifi_internal_event_handler) (wifi_handle handle, int events);
@@ -150,6 +151,17 @@ typedef struct {
// add other details
} hal_info;
+#define PNO_SSID_FOUND 0x1
+#define PNO_SSID_LOST 0x2
+
+typedef struct wifi_pno_result {
+ unsigned char ssid[32];
+ unsigned char ssid_len;
+ char rssi;
+ u16 channel;
+ u16 flags;
+} wifi_pno_result_t;
+
wifi_error wifi_register_handler(wifi_handle handle, int cmd, nl_recvmsg_msg_cb_t func, void *arg);
wifi_error wifi_register_vendor_handler(wifi_handle handle,
uint32_t id, int subcmd, nl_recvmsg_msg_cb_t func, void *arg);