]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
iwlwifi: mvm: don't reset key index on HW restart
authorJohannes Berg <johannes.berg@intel.com>
Mon, 20 Apr 2015 15:31:10 +0000 (17:31 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 29 Apr 2015 10:56:40 +0000 (13:56 +0300)
commitb546dcd6b742c9188a67da335b2d48f0040550be
tree12d4e0889e71f541a4c97a2d732ff0fa12d316ab
parent133c8259f885fdef8ec8bd09600602c77b08cb99
iwlwifi: mvm: don't reset key index on HW restart

When a firmware restart is done, don't try to reprogram the keys to new
slots but rather just keep the old key index, while skipping keys that
weren't programmed before.

Not only does this restore the state more faithfully, but it will also
allow using the HW key index for internal purposes as an array index.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Reviewed-by: Luciano Coelho <luciano.coelho@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/mac80211.c