]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
wifi-scripts: fix another regression in the ucode auth_type changes
authorFelix Fietkau <nbd@nbd.name>
Wed, 25 Jun 2025 11:25:57 +0000 (13:25 +0200)
committerFelix Fietkau <nbd@nbd.name>
Wed, 25 Jun 2025 11:26:59 +0000 (13:26 +0200)
Clear the right variable
Handle psk2 explicitly

Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/iface.uc

index 6601a30689f1aacd259afc57d07658ce06d41703..780cab8a6300692128d65f7e96536145a8c4a336 100644 (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;
        }