mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-14 06:38:29 +04:00
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:
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,
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user