iwlwifi: mvm: refactor the way fw_key_table is handled
authorLuca Coelho <luciano.coelho@intel.com>
Tue, 10 Nov 2015 23:06:17 +0000 (01:06 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 20 Dec 2015 21:27:38 +0000 (23:27 +0200)
commit9c3deeb51b664db183e00688caf8da2a096d16e5
tree1d92ffe4845e82f85f3a89fbef6bf2ce21052c21
parent6ae57b293be8588f9523ae39a5475940772c31d0
iwlwifi: mvm: refactor the way fw_key_table is handled

Instead of keeping the fw_key_table bits set when the keys are removed
(i.e. in D3 entry or HW_RESTART flows), clear them and set them again
only when the keys have been successfully re-added.  This makes the
bitmask more closely tied to the actual firmware programming.

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/d3.c
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
drivers/net/wireless/intel/iwlwifi/mvm/sta.c