wifi: mac80211: only call drv_sta_rc_update for uploaded stations
authorFelix Fietkau <nbd@nbd.name>
Wed, 21 Feb 2024 14:05:35 +0000 (15:05 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 23 Feb 2024 08:22:52 +0000 (09:22 +0100)
commit413dafc8170fcb925fb17af8842f06af305f8e0b
treeb8880b1eb234d3acbef4cca1da85686ffed88d6f
parent1b7d9ab3e66655f19ee0c60cc667913da19a41f0
wifi: mac80211: only call drv_sta_rc_update for uploaded stations

When a station has not been uploaded yet, receiving SMPS or channel width
notification action frames can lead to rate_control_rate_update calling
drv_sta_rc_update with uninitialized driver private data.
Fix this by adding a missing check for sta->uploaded.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Link: https://msgid.link/20240221140535.16102-1-nbd@nbd.name
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rate.c