]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Feb 2025 09:05:15 +0000 (10:05 +0100)
commita64cf5532719905e29a8b97b5005bb69e83a1e45
tree67fb3725de7dfcbc95c689ed155e45f68b4c4095
parent46fa0c08d2232cd7cbc9489d25318ee9a1a5641d
wifi: mt76: mt7915: add module param to select 5 GHz or 6 GHz on MT7916

commit 57af267d2b8f5d88485c6372761386d79c5e6a1a upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/mediatek/mt76/mt7915/eeprom.c
drivers/net/wireless/mediatek/mt76/mt7915/init.c