mt76: connac: add support for limiting to maximum regulatory Tx power
authorYN Chen <YN.Chen@mediatek.com>
Wed, 4 Aug 2021 22:23:00 +0000 (06:23 +0800)
committerFelix Fietkau <nbd@nbd.name>
Wed, 20 Oct 2021 08:36:32 +0000 (10:36 +0200)
commitf3f1c04536b86b63cc4f3e571a44d8377c5f7ff6
tree4fe5726fd6bede907c7990497c05c4a866cefe3a
parent781f62960c635cfed55a8f8c0f909bdaf8268257
mt76: connac: add support for limiting to maximum regulatory Tx power

Consider .max_reg_power in struct ieee80211_channel to limit the
maximum power the wireless device allowed to transmit on the
corresponding channel according to the regulatory domain.

Co-developed-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: YN Chen <YN.Chen@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c