Skip to content

centauri: scan stop at ifdown, multi-AKM PSK, factory MAC, J815 board - #1530

Merged
RyanTheTide merged 4 commits into
aurora-silicon:integration/aurorafrom
m0d16l14n1:j815/centauri-wifi
Nov 12, 2026
Merged

RyanTheTide merged 4 commits into
aurora-silicon:integration/aurorafrom
m0d16l14n1:j815/centauri-wifi

Conversation

@m0d16l14n1

Copy link
Copy Markdown
Contributor
  1. Stop a running scan at ifdown: otherwise cfg80211 keeps a stale driver-owned scan and every later scan fails with -EBUSY until reboot (seen after an rfkill toggle in NetworkManager).
  2. Accept connect requests that list PSK among other AKMs (NetworkManager's WPA2 profile sends PSK + PSK-SHA256); the station RSN element is rewritten to PSK alone, as the T6050 driver does. Refusals are now logged.
  3. Factory MAC from the wifi0 node's local-mac-address (filled by the loader from the ADT), instead of a random address per boot.
  4. J815 board row (board-id 0x26, same PCIe port/PHY lane/PERST# pad as J813, firmware 27.0 TLVs). Without it, 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

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 DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

DjDeveloperr added a commit to m0d16l14n1/linux that referenced this pull request Nov 11, 2026
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 RyanTheTide left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants