iwlwifi: mvm: change iwl_mvm_get_key_sta_id() to return the station
authorJohannes Berg <johannes.berg@intel.com>
Fri, 11 Dec 2015 08:36:10 +0000 (09:36 +0100)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 20 Dec 2015 21:27:41 +0000 (23:27 +0200)
commit5f7a18477c6cb36a435554b9744160e76bc9eb69
tree1a34fce95c4505e1e46eee7b8645861ff1ebe7be
parent0e39eb0386841fc71a86ad3feb5ddff553d2888e
iwlwifi: mvm: change iwl_mvm_get_key_sta_id() to return the station

The code in iwl_mvm_update_tkip_key() is now pretty much duplicated
with the code in iwl_mvm_get_key_sta_id() doing the station ID lookup
again after it was already done. Change iwl_mvm_get_key_sta_id() to
iwl_mvm_get_key_sta(), returning the mvm_sta pointer, to allow that
duplicate code to be removed.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/sta.c