mtwifi-cfg: setup apcli autoconnect in iwpriv hook func

This commit is contained in:
hanwckf 2023-12-12 17:08:18 +08:00
parent a760d1b0cd
commit ee0dca7a23
2 changed files with 5 additions and 5 deletions

View File

@ -229,6 +229,11 @@ function mtwifi_cfg_iwpriv_hook(cfg)
for k, j in pairs(iwpriv_cfgs) do
__exec_iwpriv_cmd(vif, j[1], v.config[k] or j[2])
end
if mode == "sta" then
-- setup apcli auto connect
__exec_iwpriv_cmd(vif, "ApCliEnable", "1")
__exec_iwpriv_cmd(vif, "ApCliAutoConnect", "3")
end
end
end
end

View File

@ -65,11 +65,6 @@ mtwifi_vif_sta_config() {
if [ -n "$ifname" ]; then
logger -t "netifd-mtwifi" "add $ifname to vifidx $name"
# setup apcli autoconnect
iwpriv "$ifname" set ApCliEnable=1
iwpriv "$ifname" set ApCliAutoConnect=3
wireless_add_vif "$name" "$ifname"
fi
}