wifi-scripts: ucode: add missing config.auth_type assignment for psk2
authorRany Hany <[email protected]>
Sun, 23 Nov 2025 23:21:29 +0000 (23:21 +0000)
committerHauke Mehrtens <[email protected]>
Mon, 24 Nov 2025 23:37:46 +0000 (00:37 +0100)
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 <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20914
Signed-off-by: Hauke Mehrtens <[email protected]>
package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/iface.uc

index 916305e183dd9412880b48db9c5eb52b64c96fe2..dae22abd9dafc21fff9dd9e8f8896ff0f8ca482a 100644 (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;