aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRajkumar Manoharan <rmanohar@qca.qualcomm.com>2011-11-12 09:05:46 -0500
committerJohn W. Linville <linville@tuxdriver.com>2011-11-17 15:43:54 -0500
commitbc6d5c29afa724901c2feb7e4446c6eec7788cec (patch)
treee77d751be0faef7102ea2b254c4a1e8cca6f91d4
parent9c461cef0d6c417775dcec9a2b39d86b3fd8b94a (diff)
ath9k: Remove enabling btcoex from stomp type change
This patch removes btcoex_enable from stomp type change and let it be called from callee functions that makes the code can be reusable for MCI changes. Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/ath/ath9k/btcoex.c4
-rw-r--r--drivers/net/wireless/ath/ath9k/gpio.c2
-rw-r--r--drivers/net/wireless/ath/ath9k/htc_drv_gpio.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/ath9k/btcoex.c b/drivers/net/wireless/ath/ath9k/btcoex.c
index 6635c377dc00..137a045f0094 100644
--- a/drivers/net/wireless/ath/ath9k/btcoex.c
+++ b/drivers/net/wireless/ath/ath9k/btcoex.c
@@ -268,8 +268,6 @@ static void ar9003_btcoex_bt_stomp(struct ath_hw *ah,
268 "Invalid Stomptype\n"); 268 "Invalid Stomptype\n");
269 break; 269 break;
270 } 270 }
271
272 ath9k_hw_btcoex_enable(ah);
273} 271}
274 272
275/* 273/*
@@ -301,7 +299,5 @@ void ath9k_hw_btcoex_bt_stomp(struct ath_hw *ah,
301 "Invalid Stomptype\n"); 299 "Invalid Stomptype\n");
302 break; 300 break;
303 } 301 }
304
305 ath9k_hw_btcoex_enable(ah);
306} 302}
307EXPORT_SYMBOL(ath9k_hw_btcoex_bt_stomp); 303EXPORT_SYMBOL(ath9k_hw_btcoex_bt_stomp);
diff --git a/drivers/net/wireless/ath/ath9k/gpio.c b/drivers/net/wireless/ath/ath9k/gpio.c
index 2c279dcaf4ba..e4ae08e07719 100644
--- a/drivers/net/wireless/ath/ath9k/gpio.c
+++ b/drivers/net/wireless/ath/ath9k/gpio.c
@@ -198,6 +198,7 @@ static void ath_btcoex_period_timer(unsigned long data)
198 ath9k_hw_btcoex_bt_stomp(ah, is_btscan ? ATH_BTCOEX_STOMP_ALL : 198 ath9k_hw_btcoex_bt_stomp(ah, is_btscan ? ATH_BTCOEX_STOMP_ALL :
199 btcoex->bt_stomp_type); 199 btcoex->bt_stomp_type);
200 200
201 ath9k_hw_btcoex_enable(ah);
201 spin_unlock_bh(&btcoex->btcoex_lock); 202 spin_unlock_bh(&btcoex->btcoex_lock);
202 203
203 if (btcoex->btcoex_period != btcoex->btcoex_no_stomp) { 204 if (btcoex->btcoex_period != btcoex->btcoex_no_stomp) {
@@ -240,6 +241,7 @@ static void ath_btcoex_no_stomp_timer(void *arg)
240 else if (btcoex->bt_stomp_type == ATH_BTCOEX_STOMP_ALL) 241 else if (btcoex->bt_stomp_type == ATH_BTCOEX_STOMP_ALL)
241 ath9k_hw_btcoex_bt_stomp(ah, ATH_BTCOEX_STOMP_LOW); 242 ath9k_hw_btcoex_bt_stomp(ah, ATH_BTCOEX_STOMP_LOW);
242 243
244 ath9k_hw_btcoex_enable(ah);
243 spin_unlock_bh(&btcoex->btcoex_lock); 245 spin_unlock_bh(&btcoex->btcoex_lock);
244 ath9k_ps_restore(sc); 246 ath9k_ps_restore(sc);
245} 247}
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_gpio.c b/drivers/net/wireless/ath/ath9k/htc_drv_gpio.c
index e3a02eb8e0cc..ce606b618e0b 100644
--- a/drivers/net/wireless/ath/ath9k/htc_drv_gpio.c
+++ b/drivers/net/wireless/ath/ath9k/htc_drv_gpio.c
@@ -80,6 +80,7 @@ static void ath_btcoex_period_work(struct work_struct *work)
80 ath9k_hw_btcoex_bt_stomp(priv->ah, is_btscan ? ATH_BTCOEX_STOMP_ALL : 80 ath9k_hw_btcoex_bt_stomp(priv->ah, is_btscan ? ATH_BTCOEX_STOMP_ALL :
81 btcoex->bt_stomp_type); 81 btcoex->bt_stomp_type);
82 82
83 ath9k_hw_btcoex_enable(priv->ah);
83 timer_period = is_btscan ? btcoex->btscan_no_stomp : 84 timer_period = is_btscan ? btcoex->btscan_no_stomp :
84 btcoex->btcoex_no_stomp; 85 btcoex->btcoex_no_stomp;
85 ieee80211_queue_delayed_work(priv->hw, &priv->duty_cycle_work, 86 ieee80211_queue_delayed_work(priv->hw, &priv->duty_cycle_work,
@@ -108,6 +109,7 @@ static void ath_btcoex_duty_cycle_work(struct work_struct *work)
108 ath9k_hw_btcoex_bt_stomp(ah, ATH_BTCOEX_STOMP_NONE); 109 ath9k_hw_btcoex_bt_stomp(ah, ATH_BTCOEX_STOMP_NONE);
109 else if (btcoex->bt_stomp_type == ATH_BTCOEX_STOMP_ALL) 110 else if (btcoex->bt_stomp_type == ATH_BTCOEX_STOMP_ALL)
110 ath9k_hw_btcoex_bt_stomp(ah, ATH_BTCOEX_STOMP_LOW); 111 ath9k_hw_btcoex_bt_stomp(ah, ATH_BTCOEX_STOMP_LOW);
112 ath9k_hw_btcoex_enable(priv->ah);
111} 113}
112 114
113void ath_htc_init_btcoex_work(struct ath9k_htc_priv *priv) 115void ath_htc_init_btcoex_work(struct ath9k_htc_priv *priv)