Adding Index to wireless Device

This commit is contained in:
Philippe Caseiro 2018-10-24 14:57:50 +02:00
parent 2c218b00e1
commit 7a6dadd3f8
1 changed files with 1 additions and 0 deletions

View File

@ -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
}