OpenWrt Forum Archive

Topic: uci add_list eror returns bad argument

The content of this topic has been archived on 30 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

i want to be able to add sub string to current string which i couldnt find way the reason i want this to be able to add additional name to current ssid

uci set wireless.@wifi-device[0].disabled=0
uci add_list wireless.@wifi-iface[0].ssid=.fix
uci commit wireless

when i execute those i can see it adds fix to current ssid  i can see it using
uci get wireless.@wifi-iface[-1].ssid
but than i get those errors and it will not broadcast wifi

usr/lib/lua/luci/dispatcher.lua:448: Failed to execute cbi dispatcher target for entry '/admin/system/admin'.
The called action terminated with an exception:
/usr/lib/lua/luci/template.lua:104: Failed to execute template 'cbi/map'.
A runtime error occured: /usr/lib/lua/luci/template.lua:104: Failed to execute template 'cbi/tsection'.
A runtime error occured: /usr/lib/lua/luci/template.lua:104: Failed to execute template 'cbi/ucisection'.
A runtime error occured: /usr/lib/lua/luci/template.lua:104: Failed to execute template 'cbi/network_netlist'.
A runtime error occured: /usr/lib/lua/luci/util.lua:51: bad argument #3 to 'format' (string expected, got table)
stack traceback:
    [C]: in function 'assert'
    /usr/lib/lua/luci/dispatcher.lua:448: in function 'dispatch'
    /usr/lib/lua/luci/dispatcher.lua:195: in function


is there way to add .sub string how can i correct this problem

(Last edited by atillaeyice on 22 Oct 2016, 22:04)

any ideas ?

AFAIK ssid is an option, not a list.

The discussion might have continued from here.