hostapd: re-introduce process tracking
authorDaniel Golle <daniel@makrotopia.org>
Thu, 5 Dec 2019 17:35:36 +0000 (18:35 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 8 Dec 2019 18:52:39 +0000 (19:52 +0100)
commit24b97579d20b6ac6df81654a953386d2912fc324
tree005361411214975f9a4952be8556202bd2804596
parent2568db3fff7be1be848d490a7f53af42ec14b257
hostapd: re-introduce process tracking

Before commit 60fb4c92b6 ("hostapd: add ubus reload") netifd was
tracking hostapd/wpa_supplicant and restarting wifi in case of a
process crash. Restore this behaviour by tracking the PIDs of
hostapd and wpa_supplicant.
Also make sure hostapd and/or wpa_supplicant have been started before
emmitting ubus calls to them using ubus wait_for.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
package/network/services/hostapd/files/hostapd.sh