]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: mt76: mt7921: avoid undesired changes of the preset regulatory domain
authorLeon Yen <leon.yen@mediatek.com>
Fri, 12 Apr 2024 08:53:57 +0000 (16:53 +0800)
committerFelix Fietkau <nbd@nbd.name>
Tue, 14 Jan 2025 12:42:30 +0000 (13:42 +0100)
commit2425dc7beaadc39c2636f97f8bdc22dc3cf88149
tree921df59e1082604e2657fa9008d6f00cad9878cb
parent0e19942e6d1c735c95b40123de1d6e81dc2c128d
wifi: mt76: mt7921: avoid undesired changes of the preset regulatory domain

Some countries have strict RF restrictions where changing the regulatory
domain dynamically based on the connected AP is not acceptable.
This patch disables Beacon country IE hinting when a valid country code
is set from usersland (e.g., by system using iw or CRDA).

Signed-off-by: Leon Yen <leon.yen@mediatek.com>
Signed-off-by: Ming Yen Hsieh <mingyen.hsieh@mediatek.com>
Tested-by: David Ruth <druth@chromium.org>
Link: https://patch.msgid.link/20240412085357.13756-1-mingyen.hsieh@mediatek.com
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7921/init.c