]> git.baikalelectronics.ru Git - kernel.git/commit
mt76: fix setting chan->max_power
authorFelix Fietkau <nbd@nbd.name>
Fri, 31 May 2019 20:03:11 +0000 (22:03 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 27 Jun 2019 10:58:13 +0000 (12:58 +0200)
commit68ba97dec0897eabc9c32af49170129cf9c44fe7
tree55c6c04a625f2e8de0bef08054d95c48dd7e499a
parent3dcb115634b7ff287ad8305ef9b07a28ab89b195
mt76: fix setting chan->max_power

When setting chan->max_power after registering the wiphy, chan->max_reg_power
needs to be used as a limit

Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7603/init.c
drivers/net/wireless/mediatek/mt76/mt76x0/init.c
drivers/net/wireless/mediatek/mt76/mt76x2/init.c