[openwrt/openwrt] wifi-scripts: ucode: add missing config.auth_type assignment for psk2

LEDE Commits lede-commits at lists.infradead.org
Mon Nov 24 15:38:14 PST 2025


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/7ea659503aba6611bd4d660a4adec256ca53385f

commit 7ea659503aba6611bd4d660a4adec256ca53385f
Author: Rany Hany <rany_hany at riseup.net>
AuthorDate: Sun Nov 23 23:21:29 2025 +0000

    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 at riseup.net>
    Link: https://github.com/openwrt/openwrt/pull/20914
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 .../config/wifi-scripts/files-ucode/usr/share/ucode/wifi/iface.uc  | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/iface.uc b/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/iface.uc
index 916305e183..dae22abd9d 100644
--- a/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/iface.uc
+++ b/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;
 
 	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;




More information about the lede-commits mailing list