diff --git a/openwrt/wifi.go b/openwrt/wifi.go index 97174d7..9507b9f 100644 --- a/openwrt/wifi.go +++ b/openwrt/wifi.go @@ -36,7 +36,7 @@ func (w *Wifi) GetWifiCells() int { for res.Stdout == "Scanning not possible" { time.Sleep(1) - res := w.exec.Run("iwinfo", w.iface, "scan") + res = w.exec.Run("iwinfo", w.iface, "scan") if res.ReturnCode != 0 { log.Fatal(res.Stderr) return res.ReturnCode