wpa_supplicant: Save config after successfull connection

This commit is contained in:
nemunaire 2026-01-02 18:03:16 +07:00
commit 4414c99da9
2 changed files with 15 additions and 0 deletions

View file

@ -181,6 +181,12 @@ func (b *WPABackend) Connect(ssid, password string) error {
return fmt.Errorf("failed to select network: %v", err)
}
// Save the configuration to persist it across reboots
if err := b.iface.SaveConfig(); err != nil {
// Log warning but don't fail - connection still works
fmt.Printf("Warning: failed to save config: %v\n", err)
}
return nil
}