]> www.infradead.org Git - users/dwmw2/linux.git/commit
wifi: mt76: mt7915: add module param to select 5 GHz or 6 GHz on MT7916
authorShayne Chen <shayne.chen@mediatek.com>
Thu, 10 Oct 2024 08:38:16 +0000 (10:38 +0200)
committerFelix Fietkau <nbd@nbd.name>
Tue, 14 Jan 2025 12:34:34 +0000 (13:34 +0100)
commit57af267d2b8f5d88485c6372761386d79c5e6a1a
treea14bb2ded53d48df73beac270b325764063a9e12
parent126a516fe30639708e759678bcb10178938cc718
wifi: mt76: mt7915: add module param to select 5 GHz or 6 GHz on MT7916

Due to a limitation in available memory, the MT7916 firmware can only
handle either 5 GHz or 6 GHz at a time. It does not support runtime
switching without a full restart.

On older firmware, this accidentally worked to some degree due to missing
checks, but couldn't be supported properly, because it left the 6 GHz
channels uncalibrated.
Newer firmware refuses to start on either band if the passed EEPROM
data indicates support for both.

Deal with this limitation by using a module parameter to specify the
preferred band in case both are supported.

Fixes: b4d093e321bd ("mt76: mt7915: add 6 GHz support")
Cc: stable@vger.kernel.org
Signed-off-by: Shayne Chen <shayne.chen@mediatek.com>
Link: https://patch.msgid.link/20241010083816.51880-1-nbd@nbd.name
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7915/eeprom.c
drivers/net/wireless/mediatek/mt76/mt7915/init.c