hostapd: fix incorrect service name
[openwrt/openwrt.git] / package / network / services / hostapd / files / hostapd.sh
index f4e2aa559c25beaf7dc142453847ccaf42357dbd..268a41a82bdf46d2c9b9f045ab5ba708e530cd26 100644 (file)
@@ -1125,7 +1125,7 @@ wpa_supplicant_run() {
 
        [ "$ret" != 0 ] && wireless_setup_vif_failed WPA_SUPPLICANT_FAILED
 
-       local supplicant_pid=$(ubus call service list '{"name": "hostapd"}' | jsonfilter -l 1 -e "@['hostapd'].instances['supplicant'].pid")
+       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
 
        return $ret