summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/ath9k.h
diff options
context:
space:
mode:
authorSujith Manoharan <c_manoha@qca.qualcomm.com>2012-06-04 16:27:58 +0530
committerJohn W. Linville <linville@tuxdriver.com>2012-06-06 15:20:26 -0400
commite6930c4b32aaa30fb9510984509afcc9f61fa39c (patch)
tree952d8ef600b7e03509ec30b6e7a9fd85d9445b2f /drivers/net/wireless/ath/ath9k/ath9k.h
parent4cb54fa3a2456e66d8e3bae663d66f00cbb9e483 (diff)
ath9k: Use separate operational flags for BTCOEX
Also, use atomic operations to check the flags. Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ath9k.h')
-rw-r--r--drivers/net/wireless/ath/ath9k/ath9k.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ath9k.h b/drivers/net/wireless/ath/ath9k/ath9k.h
index e204648a84f..ee946b8fe00 100644
--- a/drivers/net/wireless/ath/ath9k/ath9k.h
+++ b/drivers/net/wireless/ath/ath9k/ath9k.h
@@ -441,12 +441,18 @@ void ath_start_ani(struct ath_common *common);
/* BTCOEX */
/**********/
+enum bt_op_flags {
+ BT_OP_PRIORITY_DETECTED,
+ BT_OP_SCAN,
+};
+
struct ath_btcoex {
bool hw_timer_enabled;
spinlock_t btcoex_lock;
struct timer_list period_timer; /* Timer for BT period */
u32 bt_priority_cnt;
unsigned long bt_priority_time;
+ unsigned long op_flags;
int bt_stomp_type; /* Types of BT stomping */
u32 btcoex_no_stomp; /* in usec */
u32 btcoex_period; /* in usec */
@@ -588,10 +594,8 @@ struct ath_ant_comb {
#define SC_OP_BEACONS BIT(1)
#define SC_OP_RXFLUSH BIT(2)
#define SC_OP_TSF_RESET BIT(3)
-#define SC_OP_BT_PRIORITY_DETECTED BIT(4)
-#define SC_OP_BT_SCAN BIT(5)
-#define SC_OP_ANI_RUN BIT(6)
-#define SC_OP_PRIM_STA_VIF BIT(7)
+#define SC_OP_ANI_RUN BIT(4)
+#define SC_OP_PRIM_STA_VIF BIT(5)
/* Powersave flags */
#define PS_WAIT_FOR_BEACON BIT(0)