aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211/files
diff options
context:
space:
mode:
authorDavid Bauer <mail@david-bauer.net>2020-07-31 19:51:51 +0200
committerDavid Bauer <mail@david-bauer.net>2020-07-31 19:51:51 +0200
commit8b3e170526cf0f1d9b15a6dd7787789d15e52cd4 (patch)
treeb9c71487d22d7203efd0ccab133281a1075efe60 /package/kernel/mac80211/files
parent9e02580d52ef6f2ee1eb38ae4e5977bb6002a552 (diff)
downloadupstream-8b3e170526cf0f1d9b15a6dd7787789d15e52cd4.tar.gz
upstream-8b3e170526cf0f1d9b15a6dd7787789d15e52cd4.tar.bz2
upstream-8b3e170526cf0f1d9b15a6dd7787789d15e52cd4.zip
hostapd: fix incorrect service name
When retrieving the PID for hostapd and wpa_supplicant via ubus the wrong service name is currently used. This leads to the following error in the log: netifd: radio0 (1409): WARNING (wireless_add_process): executable path /usr/sbin/wpad does not match process path (/proc/exe) Fixing the service name retrieves the correct PID and therefore the warning won't occur. Signed-off-by: David Bauer <mail@david-bauer.net>
Diffstat (limited to 'package/kernel/mac80211/files')
-rw-r--r--package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
index 5214704830..864b15e120 100644
--- a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
+++ b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
@@ -993,7 +993,7 @@ drv_mac80211_setup() {
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": "hostapd"}' | jsonfilter -l 1 -e "@['hostapd'].instances['hostapd'].pid")
+ local hostapd_pid=$(ubus call service list '{"name": "wpad"}' | jsonfilter -l 1 -e "@['wpad'].instances['hostapd'].pid")
wireless_add_process "$hostapd_pid" "/usr/sbin/hostapd" 1
fi
ret="$?"