mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-09 02:43:53 +08:00
mtwifi-cfg: limit acl list entry number to 129
This commit is contained in:
parent
2a32e39feb
commit
5e863673cf
@ -347,7 +347,7 @@ function mtwifi_cfg_setup(argv)
|
|||||||
if not v.config.disabled then
|
if not v.config.disabled then
|
||||||
dats.ApCliEnable = 1
|
dats.ApCliEnable = 1
|
||||||
end
|
end
|
||||||
dats.ApCliSsid = v.config.ssid
|
dats.ApCliSsid = v.config.ssid or ""
|
||||||
dats.ApCliBssid = v.config.bssid or ""
|
dats.ApCliBssid = v.config.bssid or ""
|
||||||
dats.ApCliAuthMode = defs.enc2dat[v.config.encryption][1]
|
dats.ApCliAuthMode = defs.enc2dat[v.config.encryption][1]
|
||||||
dats.ApCliEncrypType = defs.enc2dat[v.config.encryption][2]
|
dats.ApCliEncrypType = defs.enc2dat[v.config.encryption][2]
|
||||||
@ -504,9 +504,12 @@ function mtwifi_cfg_setup(argv)
|
|||||||
|
|
||||||
if v.config.maclist then
|
if v.config.maclist then
|
||||||
local maclist = ""
|
local maclist = ""
|
||||||
for _, v in ipairs(v.config.maclist) do
|
for i, v in ipairs(v.config.maclist) do
|
||||||
|
if i > defs.max_acl_entry then
|
||||||
|
break
|
||||||
|
end
|
||||||
if #maclist > 0 then
|
if #maclist > 0 then
|
||||||
maclist = v .. ";" .. maclist
|
maclist = maclist .. ";" .. v
|
||||||
else
|
else
|
||||||
maclist = v
|
maclist = v
|
||||||
end
|
end
|
||||||
@ -582,7 +585,6 @@ function mtwifi_cfg_setup(argv)
|
|||||||
table.insert(restore_vifs, v)
|
table.insert(restore_vifs, v)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if #restore_vifs > 0 then
|
if #restore_vifs > 0 then
|
||||||
nixio.syslog("info", "mtwifi-cfg: dbdc restore_vifs: "..inspect.inspect(restore_vifs))
|
nixio.syslog("info", "mtwifi-cfg: dbdc restore_vifs: "..inspect.inspect(restore_vifs))
|
||||||
end
|
end
|
||||||
@ -606,7 +608,6 @@ function mtwifi_cfg_setup(argv)
|
|||||||
end
|
end
|
||||||
|
|
||||||
mtwifi_cfg_iwpriv_hook(cfg)
|
mtwifi_cfg_iwpriv_hook(cfg)
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function mtwifi_cfg_down(devname)
|
function mtwifi_cfg_down(devname)
|
||||||
|
@ -18,6 +18,7 @@ local mtwifi_defs = {}
|
|||||||
|
|
||||||
mtwifi_defs.dbdc_init_ifname = "ra0"
|
mtwifi_defs.dbdc_init_ifname = "ra0"
|
||||||
mtwifi_defs.max_mbssid = 16
|
mtwifi_defs.max_mbssid = 16
|
||||||
|
mtwifi_defs.max_acl_entry = 129
|
||||||
|
|
||||||
mtwifi_defs.vif_cfgs = {
|
mtwifi_defs.vif_cfgs = {
|
||||||
-- dat cfg = default val
|
-- dat cfg = default val
|
||||||
|
Loading…
x
Reference in New Issue
Block a user