wifi-scripts: fix another regression in the ucode auth_type changes
Clear the right variable Handle psk2 explicitly Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
8ad5416d99
commit
126dc7ddb9
1 changed files with 7 additions and 2 deletions
|
@ -43,7 +43,7 @@ export function parse_encryption(config, dev_config) {
|
||||||
case 'psk':
|
case 'psk':
|
||||||
case 'psk-mixed':
|
case 'psk-mixed':
|
||||||
config.auth_type = "psk";
|
config.auth_type = "psk";
|
||||||
config.wpa_pairwise = null;
|
wpa3_pairwise = null;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'sae':
|
case 'sae':
|
||||||
|
@ -60,11 +60,16 @@ export function parse_encryption(config, dev_config) {
|
||||||
case 'wpa2':
|
case 'wpa2':
|
||||||
case 'wpa-mixed':
|
case 'wpa-mixed':
|
||||||
config.auth_type = 'eap';
|
config.auth_type = 'eap';
|
||||||
config.wpa_pairwise = null;
|
wpa3_pairwise = null;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'psk2':
|
||||||
|
wpa3_pairwise = null;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
config.wpa_pairwise = null;
|
config.wpa_pairwise = null;
|
||||||
|
wpa3_pairwise = null;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue