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-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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue