wifi-scripts: ucode: add missing config.auth_type assignment for psk2

This ends up breaking wifi-station and wifi-vlan as it depends on
config.auth_type being either psk or psk-sae. When set to psk2,
this would be unset causing that feature to not work.

See discussion in https://github.com/openwrt/openwrt/issues/20705#issuecomment-3568446006

Signed-off-by: Rany Hany <rany_hany@riseup.net>
Link: https://github.com/openwrt/openwrt/pull/20914
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
Rany Hany 2025-11-23 23:21:29 +00:00 committed by Hauke Mehrtens
parent 29a9c3feb1
commit 7ea659503a

View File

@ -41,8 +41,9 @@ export function parse_encryption(config, dev_config) {
break;
case 'psk':
case 'psk2':
case 'psk-mixed':
config.auth_type = "psk";
config.auth_type = 'psk';
wpa3_pairwise = null;
break;
@ -63,10 +64,6 @@ export function parse_encryption(config, dev_config) {
wpa3_pairwise = null;
break;
case 'psk2':
wpa3_pairwise = null;
break;
default:
config.wpa_pairwise = null;
wpa3_pairwise = null;