From 0311890b6c159e8f4f4b1826efb5d468a517edb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20L=C3=B6per?= Date: Wed, 11 Sep 2019 03:24:52 +0200 Subject: [PATCH] Update commands.go --- iotwifi/commands.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/iotwifi/commands.go b/iotwifi/commands.go index f67fd19..017fd57 100644 --- a/iotwifi/commands.go +++ b/iotwifi/commands.go @@ -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)