summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/bcmdhd/dhd.h
diff options
context:
space:
mode:
authorECCO PARK <eccopark@broadcom.com>2011-08-18 15:18:04 -0700
committerDmitry Shmidt <dimitrysh@google.com>2011-08-18 15:29:03 -0700
commit8b404d162085c675989d7fb55c3f641fdfa11eec (patch)
treec6179c758f85cd71c8079ae8014b2e9e2be4366c /drivers/net/wireless/bcmdhd/dhd.h
parent7cec4833d01b9597a65e28173c7c231135365d3d (diff)
net: wireless: bcmdhd: Fix Softap initialization
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Diffstat (limited to 'drivers/net/wireless/bcmdhd/dhd.h')
-rw-r--r--drivers/net/wireless/bcmdhd/dhd.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/bcmdhd/dhd.h b/drivers/net/wireless/bcmdhd/dhd.h
index ea8f67ce8b4e..b0df6c772006 100644
--- a/drivers/net/wireless/bcmdhd/dhd.h
+++ b/drivers/net/wireless/bcmdhd/dhd.h
@@ -71,6 +71,12 @@ enum dhd_bus_state {
DHD_BUS_DATA /* Ready for frame transfers */
};
+/* Firmware requested operation mode */
+#define STA_MASK 0x0001
+#define HOSTAPD_MASK 0x0002
+#define WFD_MASK 0x0004
+#define SOFTAP_FW_MASK 0x0008
+
enum dhd_bus_wake_state {
WAKE_LOCK_OFF,
WAKE_LOCK_PRIV,
@@ -173,6 +179,7 @@ typedef struct dhd_pub {
wl_country_t dhd_cspec; /* Current Locale info */
char eventmask[WL_EVENTING_MASK_LEN];
+ int op_mode; /* STA, HostAPD, WFD, SoftAP */
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)) && defined(CONFIG_HAS_WAKELOCK)
struct wake_lock wakelock[WAKE_LOCK_MAX];