nterface-ip: remove superfluous iface check in interface_ip_set_enabled()
[project/netifd.git] / scripts / netifd-wireless.sh
index 87d13ca..8816bff 100644 (file)
@@ -163,8 +163,8 @@ _wireless_add_process() {
        json_add_int pid "$1"
        json_add_string exe "$exe"
        [ -n "$3" ] && json_add_boolean required 1
-       exe2="$(readlink -f /proc/$pid/exe)"
-       [ "$exe" = "$exe2" ] && echo "WARNING (wireless_add_process): executable path $exe does not match process $1 path ($exe2)"
+       exe2="$(readlink -f /proc/$1/exe)"
+       [ "$exe" != "$exe2" ] && echo "WARNING (wireless_add_process): executable path $exe does not match process $1 path ($exe2)"
        _wdev_notify
 }
 
@@ -291,7 +291,7 @@ for_each_interface() {
 }
 
 _wdev_common_device_config() {
-       config_add_string channel hwmode htmode
+       config_add_string channel hwmode htmode noscan
 }
 
 _wdev_common_iface_config() {