iwlwifi: move utility functions out of iwl-core.h
Move these functions to iwl-agn.h as part of iwl-core.h cleanup. Signed-off-by: Meenakshi Venkataraman <meenakshi.venkataraman@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
This commit is contained in:
committed by
Wey-Yi Guy
parent
f32cadfc0d
commit
1dfdbdd291
@@ -161,6 +161,13 @@ void iwlagn_dev_txfifo_flush(struct iwl_priv *priv, u16 flush_control);
|
|||||||
int iwlagn_send_beacon_cmd(struct iwl_priv *priv);
|
int iwlagn_send_beacon_cmd(struct iwl_priv *priv);
|
||||||
int iwl_send_statistics_request(struct iwl_priv *priv,
|
int iwl_send_statistics_request(struct iwl_priv *priv,
|
||||||
u8 flags, bool clear);
|
u8 flags, bool clear);
|
||||||
|
|
||||||
|
static inline const struct ieee80211_supported_band *iwl_get_hw_mode(
|
||||||
|
struct iwl_priv *priv, enum ieee80211_band band)
|
||||||
|
{
|
||||||
|
return priv->hw->wiphy->bands[band];
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_PM_SLEEP
|
#ifdef CONFIG_PM_SLEEP
|
||||||
int iwlagn_send_patterns(struct iwl_priv *priv,
|
int iwlagn_send_patterns(struct iwl_priv *priv,
|
||||||
struct cfg80211_wowlan *wowlan);
|
struct cfg80211_wowlan *wowlan);
|
||||||
@@ -228,6 +235,12 @@ void iwlagn_bt_cancel_deferred_work(struct iwl_priv *priv);
|
|||||||
void iwlagn_bt_coex_rssi_monitor(struct iwl_priv *priv);
|
void iwlagn_bt_coex_rssi_monitor(struct iwl_priv *priv);
|
||||||
void iwlagn_bt_adjust_rssi_monitor(struct iwl_priv *priv, bool rssi_ena);
|
void iwlagn_bt_adjust_rssi_monitor(struct iwl_priv *priv, bool rssi_ena);
|
||||||
|
|
||||||
|
static inline bool iwl_advanced_bt_coexist(struct iwl_priv *priv)
|
||||||
|
{
|
||||||
|
return cfg(priv)->bt_params &&
|
||||||
|
cfg(priv)->bt_params->advanced_bt_coexist;
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_IWLWIFI_DEBUG
|
#ifdef CONFIG_IWLWIFI_DEBUG
|
||||||
const char *iwl_get_tx_fail_reason(u32 status);
|
const char *iwl_get_tx_fail_reason(u32 status);
|
||||||
const char *iwl_get_agg_tx_fail_reason(u16 status);
|
const char *iwl_get_agg_tx_fail_reason(u16 status);
|
||||||
|
@@ -152,19 +152,6 @@ int __must_check iwl_scan_initiate(struct iwl_priv *priv,
|
|||||||
/*****************************************************
|
/*****************************************************
|
||||||
* S e n d i n g H o s t C o m m a n d s *
|
* S e n d i n g H o s t C o m m a n d s *
|
||||||
*****************************************************/
|
*****************************************************/
|
||||||
|
|
||||||
static inline const struct ieee80211_supported_band *iwl_get_hw_mode(
|
|
||||||
struct iwl_priv *priv, enum ieee80211_band band)
|
|
||||||
{
|
|
||||||
return priv->hw->wiphy->bands[band];
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline bool iwl_advanced_bt_coexist(struct iwl_priv *priv)
|
|
||||||
{
|
|
||||||
return cfg(priv)->bt_params &&
|
|
||||||
cfg(priv)->bt_params->advanced_bt_coexist;
|
|
||||||
}
|
|
||||||
|
|
||||||
extern bool bt_siso_mode;
|
extern bool bt_siso_mode;
|
||||||
|
|
||||||
#endif /* __iwl_core_h__ */
|
#endif /* __iwl_core_h__ */
|
||||||
|
Reference in New Issue
Block a user