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:
Felix Fietkau 2025-06-25 13:25:57 +02:00
parent 8ad5416d99
commit 126dc7ddb9

View file

@ -43,7 +43,7 @@ export function parse_encryption(config, dev_config) {
case 'psk':
case 'psk-mixed':
config.auth_type = "psk";
config.wpa_pairwise = null;
wpa3_pairwise = null;
break;
case 'sae':
@ -60,11 +60,16 @@ export function parse_encryption(config, dev_config) {
case 'wpa2':
case 'wpa-mixed':
config.auth_type = 'eap';
config.wpa_pairwise = null;
wpa3_pairwise = null;
break;
case 'psk2':
wpa3_pairwise = null;
break;
default:
config.wpa_pairwise = null;
wpa3_pairwise = null;
break;
}