OSDN Git Service

iwlwifi: mvm: remove sta key on wep ap
authorLiad Kaufman <liad.kaufman@intel.com>
Thu, 1 Nov 2018 14:30:15 +0000 (16:30 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Tue, 29 Jan 2019 14:10:30 +0000 (16:10 +0200)
commit34a880d8bd4c29f7aaf02a46e2569234bd178528
tree6ffda8b2c37d61bcdcf001650f5eac88c4f3cde1
parent9adcc117bc7d16e5ef226fec0a1d1f25765bf9ce
iwlwifi: mvm: remove sta key on wep ap

If WEP is used, no one removes the STA key upon STA
removal, leading to a situation where after 16
connect/disconnects - the AP could no longer decrypt
incoming data frames since iwl_mvm_set_fw_key_idx()
called from iwl_mvm_set_sta_key() during association
returns STA_KEY_IDX_INVALID, thus not setting the key
for that connecting STA.

Fix this by removing the key in the driver when the
STA is removed.

Signed-off-by: Liad Kaufman <liad.kaufman@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c