wpa_supplicant: Save config after successfull connection
This commit is contained in:
parent
5532457cdf
commit
4414c99da9
2 changed files with 15 additions and 0 deletions
|
|
@ -125,6 +125,15 @@ func (i *WPAInterface) Disconnect() error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// SaveConfig saves the current configuration to the wpa_supplicant config file
|
||||
func (i *WPAInterface) SaveConfig() error {
|
||||
err := i.obj.Call(InterfaceInterface+".SaveConfig", 0).Err
|
||||
if err != nil {
|
||||
return fmt.Errorf("save config failed: %v", err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// GetPath returns the D-Bus object path for this interface
|
||||
func (i *WPAInterface) GetPath() dbus.ObjectPath {
|
||||
return i.path
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue