Adding Index to wireless Device
This commit is contained in:
parent
2c218b00e1
commit
7a6dadd3f8
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue