gluon-core: fix 200-wireless coding style
This commit is contained in:
parent
2b9dd54f00
commit
06d0c0f211
@ -54,28 +54,21 @@ local function configure_ibss(config, radio, index, suffix, disabled)
|
||||
end
|
||||
|
||||
if config.vlan then
|
||||
uci:section('network', 'interface', name,
|
||||
{
|
||||
uci:section('network', 'interface', name, {
|
||||
proto = 'none',
|
||||
}
|
||||
)
|
||||
})
|
||||
|
||||
uci:section('network', 'interface', name .. '_vlan',
|
||||
{
|
||||
uci:section('network', 'interface', name .. '_vlan', {
|
||||
ifname = '@' .. name .. '.' .. config.vlan,
|
||||
proto = 'gluon_mesh',
|
||||
}
|
||||
)
|
||||
})
|
||||
else
|
||||
uci:section('network', 'interface', name,
|
||||
{
|
||||
uci:section('network', 'interface', name, {
|
||||
proto = 'gluon_mesh',
|
||||
}
|
||||
)
|
||||
})
|
||||
end
|
||||
|
||||
uci:section('wireless', 'wifi-iface', name,
|
||||
{
|
||||
uci:section('wireless', 'wifi-iface', name, {
|
||||
device = radio,
|
||||
network = name,
|
||||
mode = 'adhoc',
|
||||
@ -85,8 +78,7 @@ local function configure_ibss(config, radio, index, suffix, disabled)
|
||||
mcast_rate = config.mcast_rate,
|
||||
ifname = suffix and 'ibss' .. suffix,
|
||||
disabled = disabled,
|
||||
}
|
||||
)
|
||||
})
|
||||
end
|
||||
|
||||
local function configure_mesh(config, radio, index, suffix, disabled)
|
||||
@ -107,14 +99,11 @@ local function configure_mesh(config, radio, index, suffix, disabled)
|
||||
return
|
||||
end
|
||||
|
||||
uci:section('network', 'interface', name,
|
||||
{
|
||||
uci:section('network', 'interface', name, {
|
||||
proto = 'gluon_mesh',
|
||||
}
|
||||
)
|
||||
})
|
||||
|
||||
uci:section('wireless', 'wifi-iface', name,
|
||||
{
|
||||
uci:section('wireless', 'wifi-iface', name, {
|
||||
device = radio,
|
||||
network = name,
|
||||
mode = 'mesh',
|
||||
@ -126,8 +115,7 @@ local function configure_mesh(config, radio, index, suffix, disabled)
|
||||
disabled = disabled,
|
||||
macfilter = macfilter,
|
||||
maclist = maclist,
|
||||
}
|
||||
)
|
||||
})
|
||||
end
|
||||
|
||||
local function fixup_wan(radio, index)
|
||||
|
Loading…
Reference in New Issue
Block a user