Skip to content

Stop AP/WLAN contention during setup Wi‑Fi connect - #15

Draft
edtubbs with Copilot wants to merge 6 commits into
mainfrom
copilot/fix-wifi-connection-issue
Draft

Stop AP/WLAN contention during setup Wi‑Fi connect#15
edtubbs with Copilot wants to merge 6 commits into
mainfrom
copilot/fix-wifi-connection-issue

Conversation

Copilot AI commented Mar 6, 2026

Copy link
Copy Markdown

Setup could complete over Ethernet but fail to bring up Wi‑Fi when AP mode was still active on the same radio. The Wi‑Fi test path also tolerated non-connected states, masking failures.

  • Patch dogeboxd in flake build

    • Added a local patch override for the pinned dogeboxd package in flake.nix.
    • Keeps the fix scoped to this repo’s build without changing upstream pin.
  • AP → client handoff in setup flow

    • In _dbxroot wifi-test, stop create_ap.service before starting wpa_supplicant on the selected interface.
    • Stop failure is logged as warning (non-fatal), so environments without create_ap don’t hard-fail.
  • Tighten Wi‑Fi test correctness

    • Trim wpa_cli add_network output before reusing as network ID.
    • Return an error if wpa_state=COMPLETED is not reached, instead of logging-only behavior.
stopCreateAPCmd := exec.Command("systemctl", "stop", "create_ap.service")
if out, err := stopCreateAPCmd.CombinedOutput(); err != nil {
	log.Printf("warning: failed to stop create_ap.service: %v (%s)", err, strings.TrimSpace(string(out)))
}

id := strings.TrimSpace(string(networkID))

if !strings.Contains(status, "wpa_state=COMPLETED") {
	return fmt.Errorf("wpa_supplicant did not reach connected state")
}

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: edtubbs <84785904+edtubbs@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix WiFi connection issue with access point Stop AP before Wi‑Fi setup connect attempt and fail fast on non-connected state Mar 6, 2026
Copilot AI changed the title Stop AP before Wi‑Fi setup connect attempt and fail fast on non-connected state Stop AP/WLAN contention during setup Wi‑Fi connect Mar 6, 2026
Copilot AI requested a review from edtubbs May 21, 2026 02:37
Copilot stopped work on behalf of edtubbs due to an error May 21, 2026 02:37
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.

2 participants