Skip to content

Commit 2acfd9f

Browse files
wifi-scripts: ucode: fix wpa_supplicant mesh
Mesh interfaces may not define an encryption setting. This results in a ucode runtime error when parse_encryption() is called: Reference error: left-hand side expression is null In parse_encryption(), file /usr/share/ucode/wifi/iface.uc, line 20, byte 32: called from function setup_sta (/usr/share/ucode/wifi/supplicant.uc:59:31) called from function generate (/usr/share/ucode/wifi/supplicant.uc:243:41) called from function setup (./mac80211.sh:254:61) called from anonymous function (./mac80211.sh:342:14) ` config.auth_type = encryption[0] ?? 'none';` Near here ------------------------^ Link: openwrt/openwrt#21293 (cherry picked from commit 00e6c18) Link: openwrt/openwrt#21295 Signed-off-by: Nick Hainke <[email protected]>
1 parent 8bf13dc commit 2acfd9f

File tree

1 file changed

+3
-0
lines changed
  • package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ import { append_value, log } from 'wifi.common';
44
import * as fs from 'fs';
55

66
export function parse_encryption(config, dev_config) {
7+
if (!config.encryption)
8+
return;
9+
710
let encryption = split(config.encryption, '+', 2);
811

912
config.wpa = 0;

0 commit comments

Comments
 (0)