Skip to content

fix: accept Wi-Fi network ID zero - #4885

Open
RageGen wants to merge 1 commit into
archlinux:masterfrom
RageGen:fix/wifi-network-id-zero
Open

RageGen wants to merge 1 commit into
archlinux:masterfrom
RageGen:fix/wifi-network-id-zero

Conversation

@RageGen

@RageGen RageGen commented Nov 24, 2026

Copy link
Copy Markdown

Wi-Fi setup fails when the selected network has ID 0. _find_network_id returns None for a missing network, but _setup_wifi uses if not network_id, which also rejects 0. During startup, this causes archinstall to exit before the guided installer opens.

This fix checks explicitly for None, allowing network 0 to be enabled. Regression tests cover IDs 0 and 1, plus a missing network. The ID 0 test fails before the fix and passes afterward.

Validation, includes 37 tests, ruff lint and formatting, Flake8, Pylint, project-wide mypy, and the wheel build passed.
Tested on the official Arch Linux ISO with wpa_supplicant 2.12 and two mac80211_hwsim radios. Both found network ID 0. The original code reported failure and showed a failure notification. The fixed code returned success without the notification, and the virtual client completed WPA association with the virtual access point.
wifi-before-result

wifi-fixed-result

@RageGen
RageGen requested a review from Torxed as a code owner November 24, 2026 11:23

This branch has not been deployed

No deployments
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.

1 participant