From 7a6dadd3f816d64715c5962e749ab8ff34a42249 Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Wed, 24 Oct 2018 14:57:50 +0200 Subject: [PATCH] Adding Index to wireless Device --- uci_wireless_conf.go | 1 + 1 file changed, 1 insertion(+) diff --git a/uci_wireless_conf.go b/uci_wireless_conf.go index cf5eecd..bd22188 100644 --- a/uci_wireless_conf.go +++ b/uci_wireless_conf.go @@ -147,6 +147,7 @@ func (wc *UCIWirelessConf) parseDevicesConf(lines []string) int { value = strings.Trim(value, "'") if key == "Name" { wc.Devices[idx]["Device"] = fmt.Sprintf("radio%d", idx) + wc.Devices[idx]["Index"] = strconv.Itoa(idx) } wc.Devices[idx][key] = value }