if wan iface set to apcli0 or apclii0 while wireless relay, add them to lan should be avoided (#5528)

This commit is contained in:
liuchao 2020-09-23 16:51:29 +08:00 committed by GitHub
parent dffe50b581
commit 94a7c85782
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)