diff options
author | Daniel Golle <daniel@makrotopia.org> | 2020-12-07 13:46:43 +0000 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2021-01-10 19:18:29 +0000 |
commit | cbd67dbdcd6f45ed54a4ec382c5a8ea4d082fa84 (patch) | |
tree | 8933e936823be1981d37539be528b36a3ffb3c5e /package/kernel/mac80211/files/lib | |
parent | 2d305ff13a5e24fd2bd54e7dcde89539950974a1 (diff) | |
download | upstream-cbd67dbdcd6f45ed54a4ec382c5a8ea4d082fa84.tar.gz upstream-cbd67dbdcd6f45ed54a4ec382c5a8ea4d082fa84.tar.bz2 upstream-cbd67dbdcd6f45ed54a4ec382c5a8ea4d082fa84.zip |
mac80211: use hostapd PID returned from config_add
Use PID returned from config_add instead of querying procd when adding
configuration to hostapd.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'package/kernel/mac80211/files/lib')
-rw-r--r-- | package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh index 95b6c817ff..7eea198cd9 100644 --- a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh +++ b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh @@ -1019,8 +1019,7 @@ drv_mac80211_setup() { if [ "$no_reload" != "0" ]; then add_ap=1 ubus wait_for hostapd - ubus call hostapd config_add "{\"iface\":\"$primary_ap\", \"config\":\"${hostapd_conf_file}\"}" - local hostapd_pid=$(ubus call service list '{"name": "wpad"}' | jsonfilter -l 1 -e "@['wpad'].instances['hostapd'].pid") + local hostapd_pid=$(ubus call hostapd config_add "{\"iface\":\"$primary_ap\", \"config\":\"${hostapd_conf_file}\"}" | jsonfilter -l 1 -e @.pid) wireless_add_process "$hostapd_pid" "/usr/sbin/hostapd" 1 1 fi ret="$?" |