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, });