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: David Bauer <mail@david-bauer.net>
This commit is contained in:
parent
a63be6928c
commit
f4adb66772
@ -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 enabled.data then
|
||||
@ -62,6 +63,7 @@ function f:write()
|
||||
ssid = ssid.data,
|
||||
key = key.data,
|
||||
macaddr = macaddr,
|
||||
ifname = suffix and 'wan' .. suffix,
|
||||
disabled = false,
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user