aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/common.c
diff options
context:
space:
mode:
authorVivek Natarajan <vnatarajan@atheros.com>2010-08-18 10:27:48 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-08-24 16:32:05 -0400
commitd99eeb87420a6da1f87064c7fa70bdf299699d90 (patch)
treee09db7a8d7e990837141711482948243d27e53e2 /drivers/net/wireless/ath/ath9k/common.c
parent2a5fb7b088f8418958775774dda9427d6c73c522 (diff)
ath9k_common: Move bt_stomp to common for sharing with ath9k_htc.
Signed-off-by: Vivek Natarajan <vnatarajan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/common.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/common.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/common.c b/drivers/net/wireless/ath/ath9k/common.c
index 3100c87a4fcd..31cfe468e3fc 100644
--- a/drivers/net/wireless/ath/ath9k/common.c
+++ b/drivers/net/wireless/ath/ath9k/common.c
@@ -420,6 +420,37 @@ int ath9k_cmn_count_streams(unsigned int chainmask, int max)
420} 420}
421EXPORT_SYMBOL(ath9k_cmn_count_streams); 421EXPORT_SYMBOL(ath9k_cmn_count_streams);
422 422
423/*
424 * Configures appropriate weight based on stomp type.
425 */
426void ath9k_cmn_btcoex_bt_stomp(struct ath_common *common,
427 enum ath_stomp_type stomp_type)
428{
429 struct ath_hw *ah = common->ah;
430
431 switch (stomp_type) {
432 case ATH_BTCOEX_STOMP_ALL:
433 ath9k_hw_btcoex_set_weight(ah, AR_BT_COEX_WGHT,
434 AR_STOMP_ALL_WLAN_WGHT);
435 break;
436 case ATH_BTCOEX_STOMP_LOW:
437 ath9k_hw_btcoex_set_weight(ah, AR_BT_COEX_WGHT,
438 AR_STOMP_LOW_WLAN_WGHT);
439 break;
440 case ATH_BTCOEX_STOMP_NONE:
441 ath9k_hw_btcoex_set_weight(ah, AR_BT_COEX_WGHT,
442 AR_STOMP_NONE_WLAN_WGHT);
443 break;
444 default:
445 ath_print(common, ATH_DBG_BTCOEX,
446 "Invalid Stomptype\n");
447 break;
448 }
449
450 ath9k_hw_btcoex_enable(ah);
451}
452EXPORT_SYMBOL(ath9k_cmn_btcoex_bt_stomp);
453
423static int __init ath9k_cmn_init(void) 454static int __init ath9k_cmn_init(void)
424{ 455{
425 return 0; 456 return 0;