wifi: mt76: fix the issue of missing txpwr settings from ch153 to ch177
authorMing Yen Hsieh <mingyen.hsieh@mediatek.com>
Wed, 7 Feb 2024 03:31:23 +0000 (11:31 +0800)
committerFelix Fietkau <nbd@nbd.name>
Thu, 22 Feb 2024 08:55:19 +0000 (09:55 +0100)
commite9a46175a79fbc591c48d433020444b8fa2750ee
tree4d5e4a197cb25ba1e15029d5fecb49bdfc4ec192
parent8cd725742eafa9226980d35dd3201b58be7241f5
wifi: mt76: fix the issue of missing txpwr settings from ch153 to ch177

Because the number of channels to be configured is calculated using the %,
and it results in 0 when there's an exact division, this leads to some
channels not having their tx power configured.

Fixes: 7801da338856 ("wifi: mt76: mt7921: enable set txpower for UNII-4")
Signed-off-by: Ming Yen Hsieh <mingyen.hsieh@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c