Skip to content

Commit

Permalink
Update commands.go
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinLoeper authored Sep 11, 2019
1 parent 6d9d04d commit 0311890
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions iotwifi/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ func (c *Command) RemoveApInterface() {
cmd.Wait()
}

// Disable power saving mode by disabling power management
func (c *Command) DisablePowerManagement() {
cmd := exec.Command("iw", "uap0", "set", "power_save", "off")
cmd.Start()
cmd.Wait()
}

// ConfigureApInterface configured the AP interface.
func (c *Command) ConfigureApInterface() {
cmd := exec.Command("ifconfig", "uap0", c.SetupCfg.HostApdCfg.Ip)
Expand Down

0 comments on commit 0311890

Please sign in to comment.