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)
commit73c7c0443685d8d152c3451e7305a2c2bc47b32e
treeefcc6c847db3492da74b5dcff1ffad44819eed7f
parent2b7f3574ca9a7ff4a6b4ec1ae4dfdfde481ac80b
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: 9b2ea8eee42a1 ("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