mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-07 01:53:34 +08:00
mtwifi-cfg: setup apcli autoconnect in iwpriv hook func
This commit is contained in:
parent
a760d1b0cd
commit
ee0dca7a23
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user