Skip to content

Fix WiFi SSIDs with spaces missing from scan list - #4634

Merged
svartkanin merged 2 commits into
archlinux:masterfrom
nmarley:fix/wifi-ssid-spaces
Aug 10, 2026
Merged

Fix WiFi SSIDs with spaces missing from scan list#4634
svartkanin merged 2 commits into
archlinux:masterfrom
nmarley:fix/wifi-ssid-spaces

Conversation

@nmarley

@nmarley nmarley commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

PR Description:

WifiNetwork.from_wpa used line.split() and required exactly 5 fields. SSIDs with spaces produced more tokens and were dropped silently, so they never appeared in the TUI list.

  • Parse with split(None, 4) so the SSID is the remainder (spaces preserved)
  • Skip the header row explicitly
  • Allow empty SSID (hidden networks)

Unit tests cover SSIDs with and without spaces, empty SSID, header/blank line skip, and field preservation.

Tests and Checks

  • I have tested the code

nmarley added 2 commits July 14, 2026 11:30
The wpa_cli scan_results puts the SSID last, splitting on all whitespace dropped
any network whose name contained spaces.
@nmarley
nmarley requested a review from Torxed as a code owner July 15, 2026 03:15
@svartkanin

Copy link
Copy Markdown
Collaborator

Thank you for adding tests

@svartkanin
svartkanin merged commit caf9cc8 into archlinux:master Aug 10, 2026
11 checks passed
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