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 17:01:31 +0000 (18:01 +0100)
commit438a97fab69b41387e25cbec45271e7fe159a330
treeedcda9a0748deb56fe0b692ac152cef6b2a8e5cb
parentadf91335472f786c9d49911865a2a2bdfd523e7b
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>
package/kernel/mac80211/patches/subsys/314-wifi-mac80211-fix-race-condition-on-enabling-fast-xm.patch [new file with mode: 0644]