summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/mvm/sta.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2013-11-14 18:20:04 +0100
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>2013-12-09 22:29:44 +0200
commit5b577a90fb3d86447ee86f8e0c6ddbd5da2ef8c9 (patch)
treee17091422320172704d9fd7c9f8b37bc5095f306 /drivers/net/wireless/iwlwifi/mvm/sta.h
parenta7b8b2ca916ca4ecf248fa12275eeceff510ad22 (diff)
downloadop-kernel-dev-5b577a90fb3d86447ee86f8e0c6ddbd5da2ef8c9.zip
op-kernel-dev-5b577a90fb3d86447ee86f8e0c6ddbd5da2ef8c9.tar.gz
iwlwifi: mvm: add iwl_mvm_sta_from_mac80211
This is just a helper function to go from the mac80211 station struct to our internal one, to later allow us to avoid temporary 'mvmsta' variables. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/mvm/sta.h')
-rw-r--r--drivers/net/wireless/iwlwifi/mvm/sta.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/sta.h b/drivers/net/wireless/iwlwifi/mvm/sta.h
index 4dfc359..b349411 100644
--- a/drivers/net/wireless/iwlwifi/mvm/sta.h
+++ b/drivers/net/wireless/iwlwifi/mvm/sta.h
@@ -298,6 +298,12 @@ struct iwl_mvm_sta {
bool tt_tx_protection;
};
+static inline struct iwl_mvm_sta *
+iwl_mvm_sta_from_mac80211(struct ieee80211_sta *sta)
+{
+ return (void *)sta->drv_priv;
+}
+
/**
* struct iwl_mvm_int_sta - representation of an internal station (auxiliary or
* broadcast)
OpenPOWER on IntegriCloud