mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-18 18:56:37 +00:00
hostapd: do not restart hostapd instance on wireless restarts
Add the flag that prevents netifd from killing hostapd/wpa_supplicant Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
a7ff013eb6
commit
e1851720f1
@ -1021,7 +1021,7 @@ drv_mac80211_setup() {
|
|||||||
ubus wait_for hostapd
|
ubus wait_for hostapd
|
||||||
ubus call hostapd config_add "{\"iface\":\"$primary_ap\", \"config\":\"${hostapd_conf_file}\"}"
|
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 service list '{"name": "wpad"}' | jsonfilter -l 1 -e "@['wpad'].instances['hostapd'].pid")
|
||||||
wireless_add_process "$hostapd_pid" "/usr/sbin/hostapd" 1
|
wireless_add_process "$hostapd_pid" "/usr/sbin/hostapd" 1 1
|
||||||
fi
|
fi
|
||||||
ret="$?"
|
ret="$?"
|
||||||
[ "$ret" != 0 ] && {
|
[ "$ret" != 0 ] && {
|
||||||
|
@ -1379,7 +1379,7 @@ wpa_supplicant_run() {
|
|||||||
[ "$ret" != 0 ] && wireless_setup_vif_failed WPA_SUPPLICANT_FAILED
|
[ "$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")
|
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
|
wireless_add_process "$supplicant_pid" "/usr/sbin/wpa_supplicant" 1 1
|
||||||
|
|
||||||
return $ret
|
return $ret
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user