mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-09 02:43:53 +08:00
mtwifi-cfg: fix apcli PMF settings
This commit is contained in:
parent
417b4cba51
commit
b0848f766e
@ -320,6 +320,9 @@ function mtwifi_cfg_setup(argv)
|
|||||||
dats.ApCliAuthMode = ""
|
dats.ApCliAuthMode = ""
|
||||||
dats.ApCliEncrypType = ""
|
dats.ApCliEncrypType = ""
|
||||||
dats.ApCliWPAPSK = ""
|
dats.ApCliWPAPSK = ""
|
||||||
|
dats.ApCliPMFMFPC = 0
|
||||||
|
dats.ApCliPMFMFPR = 0
|
||||||
|
dats.ApCliPMFSHA256 = 0
|
||||||
|
|
||||||
for _,v in pairs(cfg.interfaces) do
|
for _,v in pairs(cfg.interfaces) do
|
||||||
if v.config.mode == "sta" then
|
if v.config.mode == "sta" then
|
||||||
@ -331,6 +334,12 @@ function mtwifi_cfg_setup(argv)
|
|||||||
dats.ApCliAuthMode = defs.enc2dat[v.config.encryption][1]
|
dats.ApCliAuthMode = defs.enc2dat[v.config.encryption][1]
|
||||||
dats.ApCliEncrypType = defs.enc2dat[v.config.encryption][2]
|
dats.ApCliEncrypType = defs.enc2dat[v.config.encryption][2]
|
||||||
dats.ApCliWPAPSK = v.config.key or ""
|
dats.ApCliWPAPSK = v.config.key or ""
|
||||||
|
|
||||||
|
if dats.ApCliAuthMode == "OWE" or dats.ApCliAuthMode == "WPA3PSK" then
|
||||||
|
dats.ApCliPMFMFPC = 1
|
||||||
|
dats.ApCliPMFMFPR = 1
|
||||||
|
dats.ApCliPMFSHA256 = 0
|
||||||
|
end
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user