aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-core.h
diff options
context:
space:
mode:
authorStanislaw Gruszka <sgruszka@redhat.com>2011-01-28 16:47:47 +0100
committerJohn W. Linville <linville@tuxdriver.com>2011-01-28 15:46:24 -0500
commit88e58fc5d940c3463c7070a2a7a8a0ce65af3fdc (patch)
treed877458d81401c84b740718cc65520a078190094 /drivers/net/wireless/iwlwifi/iwl-core.h
parenta839cf6955fb6cb731235c310cb0c72c1a2fecbe (diff)
downloadkernel_samsung_crespo-88e58fc5d940c3463c7070a2a7a8a0ce65af3fdc.zip
kernel_samsung_crespo-88e58fc5d940c3463c7070a2a7a8a0ce65af3fdc.tar.gz
kernel_samsung_crespo-88e58fc5d940c3463c7070a2a7a8a0ce65af3fdc.tar.bz2
iwlwifi: introduce iwl_advanced_bt_coexist()
We use priv->cfg->bt_params && priv->cfg->bt_params->advanced_bt_coexist conditional in few places, merge it into one function. Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> Acked-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-core.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-core.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.h b/drivers/net/wireless/iwlwifi/iwl-core.h
index bbc5aa7..705711a 100644
--- a/drivers/net/wireless/iwlwifi/iwl-core.h
+++ b/drivers/net/wireless/iwlwifi/iwl-core.h
@@ -741,6 +741,12 @@ static inline const struct ieee80211_supported_band *iwl_get_hw_mode(
return priv->hw->wiphy->bands[band];
}
+static inline bool iwl_advanced_bt_coexist(struct iwl_priv *priv)
+{
+ return priv->cfg->bt_params &&
+ priv->cfg->bt_params->advanced_bt_coexist;
+}
+
extern bool bt_coex_active;
extern bool bt_siso_mode;