Skip to content

topbar: use passPhrase keyType in Wi-Fi profile XML (#318) - #332

Open
adam0307a wants to merge 1 commit into
Lemxy:mainfrom
adam0307a:fix/wifi-passphrase-case
Open

adam0307a wants to merge 1 commit into
Lemxy:mainfrom
adam0307a:fix/wifi-passphrase-case

Conversation

@adam0307a

@adam0307a adam0307a commented Dec 3, 2026 •

Copy link
Copy Markdown

Summary

  • Fix the <keyType> element in plugins/topbar/src/fly.rs (wifi_join) from passphrase to passPhrase, as required by the case-sensitive Windows WLAN_profile v1 schema (matching plugins/rust-settings/src/wifi.rs).
  • Extract wifi_profile_xml and add unit test fly::tests::wifi_profile_uses_passphrase_key_type covering WPAPSK, WPA2PSK, WPA3SAE, XML escaping, and open networks.

Note: Kept scoped strictly to the passPhrase fix in fly.rs (leaving the separate status.rs GetNetworkConnectivityHint note from #318 out of this PR to keep it single-purpose).

Fixes #318

Testing

  • powershell -ExecutionPolicy Bypass -File scripts\build-plugins.ps1 — passed
  • cargo test --workspace — all tests passed (including topbar's 33 tests)
  • cargo test in plugins/rust-search — all tests passed

The Windows WLAN_profile v1 schema requires case-sensitive `passPhrase` for `<keyType>` (matching `plugins/rust-settings/src/wifi.rs`). Using lowercase `passphrase` caused WlanSetProfile to reject password-protected Wi-Fi profiles created from the topbar flyout.

Fixes Lemxy#318
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.

Couldn't connect to the Wi-Fi just because one word in the source file had the wrong case

1 participant