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 <nbd@nbd.name>
This commit is contained in:
Felix Fietkau committed 2026-07-16 11:50:22 +02:00
1 parent 1a58efdb5d
commit 39507969ff
1 file changed
+1 -2
@@ -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,
});