Jelajahi Sumber

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 <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20914
Signed-off-by: Hauke Mehrtens <[email protected]>
Rany Hany 1 bulan lalu
induk
melakukan
7ea659503a

+ 2 - 5
package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/iface.uc

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