mt76: connac: fix a theoretical NULL pointer dereference in mt76_connac_get_phy_mode
authorLorenzo Bianconi <lorenzo@kernel.org>
Thu, 18 Nov 2021 12:49:41 +0000 (13:49 +0100)
committerFelix Fietkau <nbd@nbd.name>
Sun, 19 Dec 2021 14:23:59 +0000 (15:23 +0100)
commitc9dbeac4988f6d4c4211b3747ec9c9c75ea87967
tree65502c0d7e011e07a02225f98222c59b4f0e945d
parentec2ebc1c5a5ce49538fa78108c53eaf722eee908
mt76: connac: fix a theoretical NULL pointer dereference in mt76_connac_get_phy_mode

Even if it is not a real bug since mt76_connac_get_phy_mode runs just
for mt7921 where only STA is supported, fix a theoretical NULL pointer
dereference if new added modes do not support HE

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c