]> Pileus Git - ~andy/linux/commitdiff
ath9k: Fix clearing of BTCOEX flags
authorMohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
Fri, 29 Jun 2012 05:04:39 +0000 (10:34 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 9 Jul 2012 20:36:01 +0000 (16:36 -0400)
BTCOEX flags are set/cleared by atomic operations.
We got to do the same in ath9k_btcoex_timer_resume,
while clearing those BTCOEX flags.

Acked-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/gpio.c

index 9ae6a4d9769144f42722933846f3b5fa83ff3ebb..5eac4d168653e29818c1cdb3df5f8d7133cf3320 100644 (file)
@@ -305,7 +305,8 @@ void ath9k_btcoex_timer_resume(struct ath_softc *sc)
 
        btcoex->bt_priority_cnt = 0;
        btcoex->bt_priority_time = jiffies;
-       btcoex->op_flags &= ~(BT_OP_PRIORITY_DETECTED | BT_OP_SCAN);
+       clear_bit(BT_OP_PRIORITY_DETECTED, &btcoex->op_flags);
+       clear_bit(BT_OP_SCAN, &btcoex->op_flags);
 
        mod_timer(&btcoex->period_timer, jiffies);
 }