hostapd: add ucode support, use ucode for the main ubus object
[openwrt/staging/stintel.git] / package / network / services / hostapd / files / hostapd.sh
index bf3625c92d8b4e696e3e1fd849230f5d4e20f936..49db03ed46256b6020dd42b36a88c8896179339e 100644 (file)
@@ -1591,29 +1591,6 @@ EOF
        return 0
 }
 
-wpa_supplicant_run() {
-       local ifname="$1"
-       local hostapd_ctrl="$2"
-
-       _wpa_supplicant_common "$ifname"
-
-       ubus wait_for wpa_supplicant
-       local supplicant_res="$(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\"} \
-               }")"
-
-       ret="$?"
-
-       [ "$ret" != 0 -o -z "$supplicant_res" ] && wireless_setup_vif_failed WPA_SUPPLICANT_FAILED
-
-       wireless_add_process "$(jsonfilter -s "$supplicant_res" -l 1 -e @.pid)" "/usr/sbin/wpa_supplicant" 1 1
-
-       return $ret
-}
-
 hostapd_common_cleanup() {
        killall meshd-nl80211
 }