iwlwifi: mvm: fix TKIP key updating
authorBeni Lev <beni.lev@intel.com>
Wed, 6 Feb 2013 15:22:18 +0000 (17:22 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 11 Feb 2013 10:56:12 +0000 (11:56 +0100)
commitc3eb536aabb966542a0b6b09ad38cc43abe9ad1a
treeee35397656fcda9e5f8feb8330d70b108b33c602
parent8115efbdc82acc935b54f0a849eb834129ea1fd0
iwlwifi: mvm: fix TKIP key updating

When a TKIP key is updated with a station pointer that is NULL it is
a GTK, so it should use the AP's station ID. Fix the code to do that.

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