iwlwifi: mvm: use helpers to get iwl_mvm_sta
authorSara Sharon <sara.sharon@intel.com>
Sun, 10 Apr 2016 12:51:54 +0000 (15:51 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Tue, 10 May 2016 19:34:04 +0000 (22:34 +0300)
commit13303c0fb1481e40377d072a29570e005e7bd032
tree500e217b7348e158f05a1319d9a38bbfe069de10
parentce1f27787d493bc28d2f523a3b4c9f72aa9cee7d
iwlwifi: mvm: use helpers to get iwl_mvm_sta

Getting the mvm station out of station id requires dereferencing
the station id to get ieee80211_sta, then checking for pointer
validity and only then extract mvm station out.
Given that there are helpers to do it - use them instead of
duplicating the code whenever we need only mvm station.

Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/d3.c
drivers/net/wireless/intel/iwlwifi/mvm/debugfs-vif.c
drivers/net/wireless/intel/iwlwifi/mvm/ops.c
drivers/net/wireless/intel/iwlwifi/mvm/sta.c
drivers/net/wireless/intel/iwlwifi/mvm/tt.c
drivers/net/wireless/intel/iwlwifi/mvm/tx.c