]> www.infradead.org Git - users/willy/xarray.git/commit
wifi: iwlwifi: mvm: drop wrong STA selection in TX
authorJohannes Berg <johannes.berg@intel.com>
Thu, 8 Aug 2024 20:22:48 +0000 (23:22 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 27 Aug 2024 08:28:55 +0000 (10:28 +0200)
commit1c7e1068a7c9c39ed27636db93e71911e0045419
tree8e45ccdb2437516433b5fe15581827ccb62569d2
parentfa21770fe4f36d3a42297e74c9e02e019b436b07
wifi: iwlwifi: mvm: drop wrong STA selection in TX

This shouldn't happen at all, since in station mode all MMPDUs
go through the TXQ for the STA, and not this function. There
may or may not be a race in mac80211 through which this might
happen for some frames while a station is being added, but in
that case we can also just drop the frame and pretend the STA
didn't exist yet.

Also, the code is simply wrong since it uses deflink, and it's
not easy to fix it since the mvmvif->ap_sta pointer cannot be
used without the mutex, and perhaps the right link might not
even be known.

Just drop the frame at that point instead of trying to fix it
up.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20240808232017.45ad105dc7fe.I6d45c82e5758395d9afb8854057ded03c7dc81d7@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c