From: Felix Fietkau Date: Fri, 10 Jul 2026 12:44:07 +0000 (+0200) Subject: wifi-scripts: return the interface-creation result from wdev_add X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39507969ff4f366d020d7634f2b2da85b5510f29;p=thirdparty%2Fopenwrt.git wifi-scripts: return the interface-creation result from wdev_add wdev_add() dropped the wdev_create() result, so every caller's error check was dead and an nl80211 NEW_INTERFACE failure was silently ignored (hostapd and wpa_supplicant then proceeded on a missing netdev with stale MLD bookkeeping). Return the result. Signed-off-by: Felix Fietkau --- diff --git a/package/network/config/wifi-scripts/files/usr/share/hostap/common.uc b/package/network/config/wifi-scripts/files/usr/share/hostap/common.uc index f801c4940c2..a3b4ae8248b 100644 --- a/package/network/config/wifi-scripts/files/usr/share/hostap/common.uc +++ b/package/network/config/wifi-scripts/files/usr/share/hostap/common.uc @@ -298,8 +298,7 @@ const phy_proto = { }, wdev_add: function(name, data) { - let phydev = this; - wdev_create(this.phy, name, { + return wdev_create(this.phy, name, { ...data, radio: this.radio, });