From f88a3e838d03a4644e8c703d28fdc9921f41fac7 Mon Sep 17 00:00:00 2001 From: aa15032261 Date: Thu, 31 Jan 2019 22:00:04 +0800 Subject: [PATCH] Read wpa_supplicant config path from wificfg.json Read wpa_supplicant config path from wificfg.json --- iotwifi/commands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iotwifi/commands.go b/iotwifi/commands.go index abcb8cf..c3f36a0 100644 --- a/iotwifi/commands.go +++ b/iotwifi/commands.go @@ -54,7 +54,7 @@ func (c *Command) StartWpaSupplicant() { "-d", "-Dnl80211", "-iwlan0", - "-c/etc/wpa_supplicant/wpa_supplicant.conf", + "-c" + c.SetupCfg.WpaSupplicantCfg.CfgFile, } cmd := exec.Command("wpa_supplicant", args...)