]> www.infradead.org Git - users/dwmw2/linux.git/commit
iwlwifi: mvm: avoid races in rate init and rate perform
authorMordechay Goodstein <mordechay.goodstein@intel.com>
Thu, 13 Jun 2019 13:34:07 +0000 (16:34 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Aug 2019 06:30:09 +0000 (08:30 +0200)
commitde0f0564b100e232e9245230b27cd981bb7d59ed
tree5c7806dd7c67810da10fb2df170fc97b1d34ab21
parent505d5fc02a34b21383ece37872a8bcf5e59394e5
iwlwifi: mvm: avoid races in rate init and rate perform

[ Upstream commit 0f8084cdc1f9d4a6693ef4168167febb0918c6f6 ]

Rate perform uses the lq_sta table to calculate the next rate to scale
while rate init resets the same table,

Rate perform is done in soft irq context in parallel to rate init
that can be called in case we are doing changes like AP changes BW
or moving state for auth to assoc.

Signed-off-by: Mordechay Goodstein <mordechay.goodstein@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/intel/iwlwifi/mvm/rs.c
drivers/net/wireless/intel/iwlwifi/mvm/rs.h
drivers/net/wireless/intel/iwlwifi/mvm/sta.c
drivers/net/wireless/intel/iwlwifi/mvm/sta.h