mac80211: fix a race condition related to enabling fast-xmit
authorFelix Fietkau <nbd@nbd.name>
Wed, 3 Jan 2024 14:13:32 +0000 (15:13 +0100)
committerFelix Fietkau <nbd@nbd.name>
Thu, 4 Jan 2024 18:09:43 +0000 (19:09 +0100)
commit9325da80ab5dbd7caf91b2f98117c5f6ae6fc7c2
tree9db3dca61de73e8259735f8843cc6984b456882c
parentb0fc8b47e0d808c57fcb82ef6eb965668c640c50
mac80211: fix a race condition related to enabling fast-xmit

fast-xmit must only be enabled after the sta has been uploaded to the driver,
otherwise it could end up passing the not-yet-uploaded sta via drv_tx calls
to the driver, leading to potential crashes because of uninitialized drv_priv
data.
Add a missing sta->uploaded check and re-check fast xmit after inserting a sta.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry picked from commit 438a97fab69b41387e25cbec45271e7fe159a330)
package/kernel/mac80211/patches/subsys/337-wifi-mac80211-fix-race-condition-on-enabling-fast-xm.patch [new file with mode: 0644]