mt_wifi lua detect wanif name not null (#5748)

This commit is contained in:
acooler15 2020-11-08 17:06:51 +08:00 committed by GitHub
parent bb19d14f40
commit 047d6ea928
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,7 @@ 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
if ('' ~= wanif and string.match(vif, wanif)) then
return
end
local brvifs = mtkwifi.__trim(