]> git.baikalelectronics.ru Git - kernel.git/commit
mt76: connac: fix last_chan configuration in mt76_connac_mcu_rate_txpower_band
authorLorenzo Bianconi <lorenzo@kernel.org>
Tue, 30 Nov 2021 09:36:15 +0000 (10:36 +0100)
committerFelix Fietkau <nbd@nbd.name>
Sun, 19 Dec 2021 14:24:02 +0000 (15:24 +0100)
commit75513088aa5a221049f8038596e35e27b33afddd
treeefcc6c847db3492da74b5dcff1ffad44819eed7f
parent113166585026b83f5ff64a5e281542b1a0aeff84
mt76: connac: fix last_chan configuration in mt76_connac_mcu_rate_txpower_band

last_ch configuration must not be dependent on the current configured band
but it is defined by hw capabilities since the fw always expects the
following order:
- 2GHz
- 5GHz
- 6GHz

Fixes: ea777a0afb6d4 ("mt76: connac: set 6G phymode in single-sku support")
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