diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/btcoex.c')
| -rw-r--r-- | drivers/net/wireless/ath/ath9k/btcoex.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/btcoex.c b/drivers/net/wireless/ath/ath9k/btcoex.c index e8bfb01ee78a..55f607b7699e 100644 --- a/drivers/net/wireless/ath/ath9k/btcoex.c +++ b/drivers/net/wireless/ath/ath9k/btcoex.c | |||
| @@ -19,6 +19,29 @@ | |||
| 19 | static const struct ath_btcoex_config ath_bt_config = { 0, true, true, | 19 | static const struct ath_btcoex_config ath_bt_config = { 0, true, true, |
| 20 | ATH_BT_COEX_MODE_SLOTTED, true, true, 2, 5, true }; | 20 | ATH_BT_COEX_MODE_SLOTTED, true, true, 2, 5, true }; |
| 21 | 21 | ||
| 22 | static const u16 ath_subsysid_tbl[] = { | ||
| 23 | AR9280_COEX2WIRE_SUBSYSID, | ||
| 24 | AT9285_COEX3WIRE_SA_SUBSYSID, | ||
| 25 | AT9285_COEX3WIRE_DA_SUBSYSID | ||
| 26 | }; | ||
| 27 | |||
| 28 | /* | ||
| 29 | * Checks the subsystem id of the device to see if it | ||
| 30 | * supports btcoex | ||
| 31 | */ | ||
| 32 | bool ath_btcoex_supported(u16 subsysid) | ||
| 33 | { | ||
| 34 | int i; | ||
| 35 | |||
| 36 | if (!subsysid) | ||
| 37 | return false; | ||
| 38 | |||
| 39 | for (i = 0; i < ARRAY_SIZE(ath_subsysid_tbl); i++) | ||
| 40 | if (subsysid == ath_subsysid_tbl[i]) | ||
| 41 | return true; | ||
| 42 | |||
| 43 | return false; | ||
| 44 | } | ||
| 22 | 45 | ||
| 23 | /* | 46 | /* |
| 24 | * Detects if there is any priority bt traffic | 47 | * Detects if there is any priority bt traffic |
