1
0
Fork 0
Commit graph

9 commits

Author SHA1 Message Date
b038e85305 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.
2026-07-14 23:04:18 -04:00
6c2ea1b408 Reformat mkimg.sh and wireless_reprobe.sh with tab indentation 2026-07-14 20:30:36 -04:00
66b45a54a7 wireless_reprobe.sh: fix Phase 2 glob — remove trailing slash that broke symlink detection
The glob pattern '$drvdir/*/' appended a trailing '/' to each
entry, which caused the shell to dereference symlinks before
the '[ -L ]' test could run.  Since the only symlinks in a USB
driver directory ARE the bound device entries (e.g. 4-1:1.0),
'[ -L path/ ]' always returned false and the unbind+rebind
never fired for any driver.

Drop the trailing '/', iterate over all entries, and filter
with '[ -L ]' on the raw name.  The module/uevent/new_id
name-skips still work correctly.
2026-07-14 14:42:35 -04:00
cac2f751ac wireless_reprobe.sh: force-unbind+rebind already-bound WiFi USB drivers
The old script only re-probed driverless USB interfaces.  Some built-in
USB WiFi drivers (notably mt7921u) do NOT fail probe() when firmware is
missing — they bind 'successfully', then loop on the MCU handshake until
a timeout kills hardware init.  The driverless-only reprobe never
touches them, so the adapter stays dead after the initial probe.

Fix: add phase 2 that force-unbinds and re-probes every USB interface
already bound to a known built-in WiFi driver, so their firmware request
runs again now that /vendor/firmware is available on the kernel's
fw_path[].

Also increase the driver list to match all built-in =y USB WiFi drivers
from tart_defconfig.
2026-07-14 13:18:39 -04:00
437045a987 Revert force-rebind of bound USB WiFi drivers in reprobe 2026-07-13 15:12:13 -04:00
1668ff73d8 Force-rebind bound-but-broken USB WiFi drivers in reprobe 2026-07-13 13:15:15 -04:00
4027a018b7 Add delayed second reprobe pass for in-flight probe races 2026-07-13 04:34:36 -04:00
b691318ecf Add wireless reprobe service for post-mount firmware loading 2026-07-13 04:16:02 -04:00
ae84f8e65e Add device tree for Orange Pi 5 Ultra LineageOS ATV 2026-07-10 17:56:31 -04:00