hostapd: do not restart hostapd instance on wireless restarts
[openwrt/openwrt.git] / package / network / services / hostapd / files / hostapd.sh
index 78f6a19612e936c13eed589392974eeb9815618a..fc78e2fb90e119e749d1ca15e76628073a4213e0 100644 (file)
@@ -1379,7 +1379,7 @@ wpa_supplicant_run() {
        [ "$ret" != 0 ] && wireless_setup_vif_failed WPA_SUPPLICANT_FAILED
 
        local supplicant_pid=$(ubus call service list '{"name": "wpad"}' | jsonfilter -l 1 -e "@['wpad'].instances['supplicant'].pid")
-       wireless_add_process "$supplicant_pid" "/usr/sbin/wpa_supplicant" 1
+       wireless_add_process "$supplicant_pid" "/usr/sbin/wpa_supplicant" 1 1
 
        return $ret
 }