Repository navigation
centauri: scan stop at ifdown, multi-AKM PSK, factory MAC, J815 board - #1530
RyanTheTide merged 4 commits into
Conversation
When the interface goes down during a scan, cfg80211 completes the scan at NETDEV_DOWN as driver-owned and stale. It keeps its scan message and refuses every later scan with -EBUSY. After Wi-Fi was switched off and on in NetworkManager, no scan worked until reboot. Make net_stop() abort the scan worker and wait for it. The worker sends the firmware's scan stop if it has not already, and completes the request as cancelled before cfg80211 sees the interface go down. Tested on J815 (MacBook Air 15-inch, M5): scans and WPA2 reconnects work after an rfkill toggle and after s2idle, which takes the interface down through NetworkManager. Assisted-by: Claude Opus 5.5 Signed-off-by: Nick <[email protected]>
…ther AKMs
wpa_supplicant without SME lists every AKM the network allows. For a
NetworkManager WPA2 profile ("WPA-PSK WPA-PSK-SHA256") the connect
request carries PSK and PSK-SHA256. The driver required exactly one AKM,
PSK, and refused the request with -EOPNOTSUPP, so the connection never
started.
Accept any AKM list that contains PSK. Rewrite the station's RSN element
to offer PSK alone, which is what the firmware's connect takes, as the
T6050 driver does. Log why a connect request is refused.
Tested on J815 (MacBook Air 15-inch, M5): NetworkManager connects to a
WPA2-PSK network on 5 GHz and 2.4 GHz.
Assisted-by: Claude Opus 5.5
Signed-off-by: Nick <[email protected]>
The interface gets a new random MAC address on every boot, so DHCP leases and router settings do not follow the machine. The loader copies the ADT's /chosen mac-address-wifi0 into the wifi0 alias target's local-mac-address, as on T6050. Use that address when it is valid. Keep the random address for a board without the node or when the loader left the placeholder. Tested on J815 (MacBook Air 15-inch, M5) with a wifi0 node: the interface has the factory (universally administered) address on every boot. Assisted-by: Claude Opus 5.5 Signed-off-by: Nick <[email protected]>
J815 has board-id 0x26 and chip-id 0x8142 in its ADT /chosen. Its N1 sits on the same T8142 PCIe port 0 with the same PHY lane and PERST# pad (pci-bridge0 function-perst = gpio0 pin 0xc0) as J813, and both restore identities ship the same t2026macG1 firmware. J815's stub is macOS 27.0, so it uses the 27.0 adapter's link TLV 386 and scan TLVs. Without this row centauri_board() returns NULL on J815 and the ROM boot fails with -ENODEV before the firmware is loaded. Tested on J815: WPA2 association on 2.4 and 5 GHz, reconnect after rfkill and after s2idle. Assisted-by: Claude Opus 5.5 Signed-off-by: Nick <[email protected]>
DjDeveloperr
left a comment
There was a problem hiding this comment.
Codex (GPT-6.1 Sol), reviewing on @DjDeveloperr’s behalf.
No blocking source findings in the reviewed net change. Reviewed scan-stop lifecycle, bounded multi-AKM PSK handling, factory MAC and explicit J815 board admission. Error/refusal behavior is retained; owner Wi-Fi/ifdown/reconnect results support the change. A site Working label is not an all-network/security-mode claim.
Hosted contributor workflow approvals were unblocked; source approval does not waive any pending CI/native build or dependency gate. Hardware reports are attributed to their authors, not new tests by this thread. No images/default-loader/hardware changes were performed.
Identify the J815 native profile with a T8142-specific compatible while retaining the PCI1900 fallback. The generic driver continues to match the host/PCI ID and obtain firmware data from its root board table; no firmware/platform/protocol values are invented. Keep all three wire27 properties required for the older PCI-only T6050 profile and forbid mixing those properties into the native profile. Only the J815 endpoint compatible changes. Shared SoC/J813 DT inputs and runtime resources remain unchanged. The J815 board firmware-table prerequisite is aurora-silicon#1530. Signed-off-by: Diljit Singh <[email protected]>
RyanTheTide
left a comment
There was a problem hiding this comment.
Checked select_rsn() bounds, the scan abort in net_stop() (scan_done is reported aborted and the worker takes no rtnl), the factory MAC fallback and the J815 board row. Looks good.
38cf8ff
into
aurora-silicon:integration/aurora
local-mac-address(filled by the loader from the ADT), instead of a random address per boot.centauri_board()returns NULL and the ROM boot fails with -ENODEV.Tested on J815: WPA2-PSK on 5 GHz and 2.4 GHz with NetworkManager, scans and reconnect after rfkill and after s2idle, factory MAC on every boot.
Part of the J815 (MacBook Air 15-inch, M5, T8142) bring-up: board results are summarised in discussion #135. Tested on a J815 with a macOS 27.0 stub (firmware 27.0) through aura Stage 2.
Assisted-by: Claude Opus 5.5