if wan iface set to apcli0 or apclii0 while wireless relay, add them to lan should be avoided (#5528)
This commit is contained in:
parent
dffe50b581
commit
94a7c85782
@ -25,6 +25,10 @@ end
|
||||
|
||||
function add_vif_into_lan(vif)
|
||||
local mtkwifi = require("mtkwifi")
|
||||
local wanif = mtkwifi.__trim(mtkwifi.read_pipe("uci get network.wan.ifname"))
|
||||
if (string.match(vif, wanif)) then
|
||||
return
|
||||
end
|
||||
local brvifs = mtkwifi.__trim(
|
||||
mtkwifi.read_pipe("uci get network.lan.ifname"))
|
||||
if not string.match(brvifs, esc(vif)) then
|
||||
@ -98,6 +102,7 @@ function mt7615_up(devname)
|
||||
end
|
||||
|
||||
os.execute(" rm -rf /tmp/mtk/wifi/mt7615*.need_reload")
|
||||
os.execute("/etc/init.d/network restart")
|
||||
end
|
||||
|
||||
function mt7615_down(devname)
|
||||
|
Loading…
x
Reference in New Issue
Block a user