Commit f4adb667 authored by David Bauer's avatar David Bauer
Browse files

gluon-web-private-wifi: define ifname for WAN radio

Set the ifname for the WAN radio (Private WLAN) to wanX, X being the
radio index.

All other radios created by Gluon already have their ifname defined
following this pattern.
Signed-off-by: default avatarDavid Bauer <>
parent a63be692
......@@ -49,6 +49,7 @@ mfp.default = uci:get('wireless', primary_iface, 'ieee80211w') or "0"
function f:write()
wireless.foreach_radio(uci, function(radio, index)
local radio_name = radio['.name']
local suffix = radio_name:match('^radio(%d+)$')
local name = "wan_" .. radio_name
if then
......@@ -62,6 +63,7 @@ function f:write()
ssid =,
key =,
macaddr = macaddr,
ifname = suffix and 'wan' .. suffix,
disabled = false,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment