|
|
@@ -1379,18 +1379,17 @@ wpa_supplicant_run() {
|
|
|
_wpa_supplicant_common "$ifname"
|
|
|
|
|
|
ubus wait_for wpa_supplicant
|
|
|
- ubus call wpa_supplicant config_add "{ \
|
|
|
+ local supplicant_pid=$(ubus call wpa_supplicant config_add "{ \
|
|
|
\"driver\": \"${_w_driver:-wext}\", \"ctrl\": \"$_rpath\", \
|
|
|
\"iface\": \"$ifname\", \"config\": \"$_config\" \
|
|
|
${network_bridge:+, \"bridge\": \"$network_bridge\"} \
|
|
|
${hostapd_ctrl:+, \"hostapd_ctrl\": \"$hostapd_ctrl\"} \
|
|
|
- }"
|
|
|
+ }" | jsonfilter -l 1 -e @.pid)
|
|
|
|
|
|
ret="$?"
|
|
|
|
|
|
[ "$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 1
|
|
|
|
|
|
return $ret
|