1
0
Fork 0

wifi: add country=US to wpa_supplicant overlay for regdom on mt7921u

On this mac80211/mt7921u stack, Android's WifiCountryCode path issues
the private DRIVER COUNTRY command (a Broadcom-era AIDL path), which
is a silent no-op. The kernel never receives NL80211_CMD_REQ_SET_REG,
so scanning runs in world regdom (00) with 5GHz passive-only.

Ship country=US in wpa_supplicant_overlay.conf, loaded by the supplicant
AIDL service (addStaInterfaceInternal -> confanother) at every interface
init. This goes through wpa_drv_set_country() -> nl80211's set_country,
issuing a genuine user regulatory hint to the kernel.
This commit is contained in:
Brendan Szymanski 2026-07-14 23:04:18 -04:00
parent fe62849cb0
commit b038e85305

View file

@ -1,3 +1,4 @@
country=US
disable_scan_offload=1 disable_scan_offload=1
wowlan_triggers=any wowlan_triggers=any
p2p_disabled=1 p2p_disabled=1