diff options
author | Johannes Berg <johannes.berg@intel.com> | 2013-11-14 18:20:04 +0100 |
---|---|---|
committer | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2013-12-09 22:29:44 +0200 |
commit | 5b577a90fb3d86447ee86f8e0c6ddbd5da2ef8c9 (patch) | |
tree | e17091422320172704d9fd7c9f8b37bc5095f306 /drivers/net/wireless/iwlwifi/mvm/tt.c | |
parent | a7b8b2ca916ca4ecf248fa12275eeceff510ad22 (diff) | |
download | op-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/tt.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/mvm/tt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/tt.c b/drivers/net/wireless/iwlwifi/mvm/tt.c index 1f3282d..18be04d 100644 --- a/drivers/net/wireless/iwlwifi/mvm/tt.c +++ b/drivers/net/wireless/iwlwifi/mvm/tt.c @@ -388,7 +388,7 @@ static void iwl_mvm_tt_tx_protection(struct iwl_mvm *mvm, bool enable) lockdep_is_held(&mvm->mutex)); if (IS_ERR_OR_NULL(sta)) continue; - mvmsta = (void *)sta->drv_priv; + mvmsta = iwl_mvm_sta_from_mac80211(sta); if (enable == mvmsta->tt_tx_protection) continue; err = iwl_mvm_tx_protection(mvm, mvmsta, enable); |