]> git.ipfire.org Git - thirdparty/openwrt.git/commit
wifi-scripts: ucode: fix wpa_supplicant mesh 21295/head
authorNick Hainke <vincent@systemli.org>
Thu, 25 Dec 2025 19:32:28 +0000 (20:32 +0100)
committerNick Hainke <vincent@systemli.org>
Thu, 25 Dec 2025 21:39:34 +0000 (22:39 +0100)
commit2acfd9f8ab12e4f353a0aa644d9adf89588b1f0f
treeea9cdbe389395e964304dd89804783353912c4bb
parent8bf13dcb36940f2d656ea8d24cbdf4320bee5e72
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: https://github.com/openwrt/openwrt/pull/21293
(cherry picked from commit 00e6c18a930df22e2734c3bc5d9b1cca1e538e6b)
Link: https://github.com/openwrt/openwrt/pull/21295
Signed-off-by: Nick Hainke <vincent@systemli.org>
package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/iface.uc