]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
wifi-scripts: pass device config to parse_encryption for station mode
authorFelix Fietkau <nbd@nbd.name>
Fri, 10 Jul 2026 12:46:37 +0000 (14:46 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 16 Jul 2026 09:50:22 +0000 (11:50 +0200)
setup_sta() called parse_encryption() without the device config, so the
sae-compat branch dereferenced a null dev_config.band and threw, aborting
the whole radio setup. Pass the device config through.

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

index a104538c098331f0a1fca83f7469cc2e89889046..66496dee673217d9c2255c3b6266eaa0b97282de 100644 (file)
@@ -58,7 +58,7 @@ export function ratelist(rates) {
 };
 
 function setup_sta(data, config) {
-       iface.parse_encryption(config);
+       iface.parse_encryption(config, data);
 
        if (config.auth_type in [ 'sae', 'owe', 'eap2', 'eap192', 'dpp' ])
                config.ieee80211w = 2;