diff options
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-sta.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-sta.h b/drivers/net/wireless/iwlwifi/iwl-sta.h index 8efb83d6cf5c..7229e2c0f770 100644 --- a/drivers/net/wireless/iwlwifi/iwl-sta.h +++ b/drivers/net/wireless/iwlwifi/iwl-sta.h | |||
@@ -84,4 +84,12 @@ int iwl_sta_rx_agg_start(struct iwl_priv *priv, | |||
84 | int iwl_sta_rx_agg_stop(struct iwl_priv *priv, const u8 *addr, int tid); | 84 | int iwl_sta_rx_agg_stop(struct iwl_priv *priv, const u8 *addr, int tid); |
85 | void iwl_sta_modify_ps_wake(struct iwl_priv *priv, int sta_id); | 85 | void iwl_sta_modify_ps_wake(struct iwl_priv *priv, int sta_id); |
86 | void iwl_sta_modify_sleep_tx_count(struct iwl_priv *priv, int sta_id, int cnt); | 86 | void iwl_sta_modify_sleep_tx_count(struct iwl_priv *priv, int sta_id, int cnt); |
87 | |||
88 | static inline int iwl_sta_id(struct ieee80211_sta *sta) | ||
89 | { | ||
90 | if (WARN_ON(!sta)) | ||
91 | return IWL_INVALID_STATION; | ||
92 | |||
93 | return ((struct iwl_station_priv_common *)sta->drv_priv)->sta_id; | ||
94 | } | ||
87 | #endif /* __iwl_sta_h__ */ | 95 | #endif /* __iwl_sta_h__ */ |