mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-07 18:05:21 +02:00
wifi: mt76: mt7996: fix NULL pointer dereference in mt7996_mcu_sta_bfer_he
commitf503ae90c7
upstream. Fix the NULL pointer dereference in mt7996_mcu_sta_bfer_he routine adding an sta interface to the mt7996 driver. Found by code review. Cc: stable@vger.kernel.org Fixes:98686cd216
("wifi: mt76: mt7996: add driver for MediaTek Wi-Fi 7 (802.11be) devices") Signed-off-by: Ma Ke <make24@iscas.ac.cn> Link: https://patch.msgid.link/20240813081242.3991814-1-make24@iscas.ac.cn Signed-off-by: Felix Fietkau <nbd@nbd.name> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
cf23427dd7
commit
8e4b60ae8a
|
@ -1300,6 +1300,9 @@ mt7996_mcu_sta_bfer_he(struct ieee80211_sta *sta, struct ieee80211_vif *vif,
|
||||||
u8 nss_mcs = mt7996_mcu_get_sta_nss(mcs_map);
|
u8 nss_mcs = mt7996_mcu_get_sta_nss(mcs_map);
|
||||||
u8 snd_dim, sts;
|
u8 snd_dim, sts;
|
||||||
|
|
||||||
|
if (!vc)
|
||||||
|
return;
|
||||||
|
|
||||||
bf->tx_mode = MT_PHY_TYPE_HE_SU;
|
bf->tx_mode = MT_PHY_TYPE_HE_SU;
|
||||||
|
|
||||||
mt7996_mcu_sta_sounding_rate(bf);
|
mt7996_mcu_sta_sounding_rate(bf);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user