Fix network connection timeouts and security detection

- Fixed detectSecurity() where WPA2 (0x100/PSK) and WPA3 (0x400/SAE)
  flags were swapped, causing NM to reject connections silently
- Added missing AP path to AddAndActivateConnection call
- Added critical connection settings: UUID, interface-name,
  autoconnect, permissions
- Changed init() to fail fast with logger.Fatal instead of
  silent failure on NM connection error
- Added auth-alg and psk-flags to WPA/WPA2 security settings
This commit is contained in:
NeilClack
2026-06-28 01:56:35 -05:00
parent 97babaa1b2
commit 193ebbcb27
23 changed files with 1185 additions and 12 deletions
+4 -1
View File
@@ -10,7 +10,10 @@ require github.com/go-gl/mathgl v1.2.0
require github.com/go-gl/gl v0.0.0-20231021071112-07e5d0ea2e71
require github.com/Wifx/gonetworkmanager/v2 v2.2.0
require (
github.com/Wifx/gonetworkmanager/v2 v2.2.0
github.com/google/uuid v1.3.0
)
require github.com/godbus/dbus/v5 v5.1.0 // indirect