]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita053a1470b58093cec583424d8bf43d1541988f9
tree12d4e0889e71f541a4c97a2d732ff0fa12d316ab
parenteb8aaa156191f82b38b123a7aacfb4960a2b60aa
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