OSDN Git Service

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)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 30 Jul 2019 16:34:10 +0000 (18:34 +0200)
commit0f8084cdc1f9d4a6693ef4168167febb0918c6f6
treea441fd7d1dc6481898182fe56cb1c05fb99ad74a
parentcfb21b11b891b08b79be07be57c40a85bb926668
iwlwifi: mvm: avoid races in rate init and rate perform

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>
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