]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: mt76: fix mt76_get_rate
authorFelix Fietkau <nbd@nbd.name>
Tue, 27 Aug 2024 09:29:51 +0000 (11:29 +0200)
committerFelix Fietkau <nbd@nbd.name>
Fri, 6 Sep 2024 09:14:37 +0000 (11:14 +0200)
commite43b87f6b7bbcde8a33a14c173e5f56c03fe9221
tree4cd49b0389451adf5461540af5d396b01c28d762
parent6ea13e6bd2af76e9e4de4534d9ac5500fb3266ba
wifi: mt76: fix mt76_get_rate

Do not assume that the first phy has 2 GHz support.
Check sband->band instead of accessing dev->phy.sband_2g.

Link: https://patch.msgid.link/20240827093011.18621-4-nbd@nbd.name
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mac80211.c