]> asedeno.scripts.mit.edu Git - linux.git/commit
iwlwifi: mvm: delay GTK setting in FW in AP mode
authorJohannes Berg <johannes.berg@intel.com>
Mon, 20 May 2019 12:49:56 +0000 (14:49 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Sat, 29 Jun 2019 07:13:54 +0000 (10:13 +0300)
commitc56e00a3feaee2b46b7d33875fb7f52efd30241f
treeffe081b778412706222cb31014f5ca2e6586cc88
parent5b7d67853832c78a4815dd5516d604d640c9d130
iwlwifi: mvm: delay GTK setting in FW in AP mode

In AP (and IBSS) mode, we can only set GTKs to firmware after we have
sent down the multicast station, but this we can only do after we've
enabled beaconing, etc.

However, during rfkill exit, hostapd will configure the keys before
starting the AP, and cfg80211/mac80211 accept it happily.

On earlier devices, this didn't bother us as GTK TX wasn't really
handled in firmware, we just put the key material into the TX cmd
and thus it only mattered when we actually transmitted a frame.

On newer devices, however, the firmware needs to track all of this
and that doesn't work if we add the key before the (multicast) sta
it belongs to.

To fix this, keep a list of keys to add during AP enable, and call
the function there.

Cc: stable@vger.kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h