]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: don't throw error when trying to remove IGTK
authorLuca Coelho <luciano.coelho@intel.com>
Fri, 31 Jan 2020 13:45:25 +0000 (15:45 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 3 Feb 2020 18:09:09 +0000 (20:09 +0200)
commitd3fff1e47dca399e40d68eaa88b8043d994e27e3
tree347c8b68c66a71aea0d759622a77cbeb9e6d74a8
parent5976b724e288ea9c0d61bad3397ae7fa17c00401
iwlwifi: don't throw error when trying to remove IGTK

The IGTK keys are only removed by mac80211 after it has already
removed the AP station.  This causes the driver to throw an error
because mac80211 is trying to remove the IGTK when the station doesn't
exist anymore.

The firmware is aware that the station has been removed and can deal
with it the next time we try to add an IGTK for a station, so we
shouldn't try to remove the key if the station ID is
IWL_MVM_INVALID_STA.  Do this by removing the check for mvm_sta before
calling iwl_mvm_send_sta_igtk() and check return from that function
gracefully if the station ID is invalid.

Cc: stable@vger.kernel.org # 4.12+
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/intel/iwlwifi/mvm/sta.c