[openwrt/openwrt] wpa_supplicant: initialize interface list on startup
LEDE Commits
lede-commits at lists.infradead.org
Wed Sep 24 04:49:36 PDT 2025
nbd pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/5170a2448c67741e1cac6412ff5a92ce7ab21717
commit 5170a2448c67741e1cac6412ff5a92ce7ab21717
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Sun Sep 21 15:30:09 2025 +0200
wpa_supplicant: initialize interface list on startup
Avoid errors on deref if adding an interface fails
Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
package/network/services/hostapd/src/wpa_supplicant/ucode.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/package/network/services/hostapd/src/wpa_supplicant/ucode.c b/package/network/services/hostapd/src/wpa_supplicant/ucode.c
index 8ba4db01de..88d63e0b21 100644
--- a/package/network/services/hostapd/src/wpa_supplicant/ucode.c
+++ b/package/network/services/hostapd/src/wpa_supplicant/ucode.c
@@ -305,6 +305,8 @@ int wpas_ucode_init(struct wpa_global *gl)
if (wpa_ucode_run(HOSTAPD_UC_PATH "wpa_supplicant.uc"))
goto free_vm;
+ wpas_ucode_update_interfaces();
+
return 0;
free_vm:
More information about the lede-commits
mailing list