From 6262a324ef650dad992ad6ba7d13ef22e8a2caba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20L=C3=B6per?= Date: Wed, 11 Sep 2019 16:24:44 +0200 Subject: [PATCH] Update commands.go --- iotwifi/commands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iotwifi/commands.go b/iotwifi/commands.go index 0134601..2f3d2c7 100644 --- a/iotwifi/commands.go +++ b/iotwifi/commands.go @@ -43,7 +43,7 @@ func (c *Command) UpApInterface() { // AddApInterface adds the AP interface. func (c *Command) AddApInterface() { - cmd := exec.Command("iw", "phy", "phy0", "interface", "add", "uap0", "type", "__ap") + cmd := exec.Command("iw", "dev", "wlan0", "interface", "add", "uap0", "type", "__ap") cmd.Start() cmd.Wait() }