未验证 提交 047d6ea9 编写于 作者: A acooler15 提交者: GitHub

mt_wifi lua detect wanif name not null (#5748)

上级 bb19d14f
......@@ -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(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册