From b038e8530560265677cfd755c4a469ebe3c97139 Mon Sep 17 00:00:00 2001 From: Brendan Szymanski Date: Tue, 14 Jul 2026 23:04:18 -0400 Subject: [PATCH] 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. --- wifi/wpa_supplicant_overlay.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/wifi/wpa_supplicant_overlay.conf b/wifi/wpa_supplicant_overlay.conf index 740792b..478c3b2 100644 --- a/wifi/wpa_supplicant_overlay.conf +++ b/wifi/wpa_supplicant_overlay.conf @@ -1,3 +1,4 @@ +country=US disable_scan_offload=1 wowlan_triggers=any p2p_disabled=1