mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-22 04:18:10 +00:00
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> Signed-off-by: maurerr <mariusd84@gmail.com>
This commit is contained in:
parent
bbb10d9ca6
commit
c135aaa3eb
@ -11,7 +11,7 @@ include $(INCLUDE_DIR)/kernel.mk
|
|||||||
PKG_NAME:=mac80211
|
PKG_NAME:=mac80211
|
||||||
|
|
||||||
PKG_VERSION:=5.8.18-1
|
PKG_VERSION:=5.8.18-1
|
||||||
PKG_RELEASE:=3
|
PKG_RELEASE:=4
|
||||||
PKG_SOURCE_URL:=@KERNEL/linux/kernel/projects/backports/stable/v5.8.18/
|
PKG_SOURCE_URL:=@KERNEL/linux/kernel/projects/backports/stable/v5.8.18/
|
||||||
PKG_HASH:=f04a8172423c6a945fc7d9844b04f33fda9ae574e552f8f18ee3bdfcfb494563
|
PKG_HASH:=f04a8172423c6a945fc7d9844b04f33fda9ae574e552f8f18ee3bdfcfb494563
|
||||||
|
|
||||||
|
@ -1019,8 +1019,7 @@ drv_mac80211_setup() {
|
|||||||
if [ "$no_reload" != "0" ]; then
|
if [ "$no_reload" != "0" ]; then
|
||||||
add_ap=1
|
add_ap=1
|
||||||
ubus wait_for hostapd
|
ubus wait_for hostapd
|
||||||
ubus call hostapd config_add "{\"iface\":\"$primary_ap\", \"config\":\"${hostapd_conf_file}\"}"
|
local hostapd_pid=$(ubus call hostapd config_add "{\"iface\":\"$primary_ap\", \"config\":\"${hostapd_conf_file}\"}" | jsonfilter -l 1 -e @.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 1
|
wireless_add_process "$hostapd_pid" "/usr/sbin/hostapd" 1 1
|
||||||
fi
|
fi
|
||||||
ret="$?"
|
ret="$?"
|
||||||
|
Loading…
Reference in New Issue
Block a user