luci-app-mtk: unset WpaMixPairCipher with WPA2/WPA3

fix #12
This commit is contained in:
hanwckf 2022-12-03 22:51:48 +08:00
parent 5515aa0c3e
commit a033c93bbb

View File

@ -570,6 +570,10 @@ local function __security_cfg(cfgs, vif_idx)
local __authmode = http.formvalue("__authmode") or "Disable"
cfgs.AuthMode = mtkwifi.token_set(cfgs.AuthMode, vif_idx, __authmode)
cfgs.WpaMixPairCipher = ""
cfgs.PMFMFPC = "0"
cfgs.PMFMFPR = "0"
cfgs.PMFSHA256 = "0"
if __authmode == "Disable" then
cfgs.AuthMode = mtkwifi.token_set(cfgs.AuthMode, vif_idx, "OPEN")