hostapd: return PID on config_add call
authorDaniel Golle <daniel@makrotopia.org>
Mon, 7 Dec 2020 13:12:46 +0000 (13:12 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 10 Jan 2021 19:15:51 +0000 (19:15 +0000)
commit2d305ff13a5e24fd2bd54e7dcde89539950974a1
treefa0e674e2893a273b3f23d45e2e5d7265f00e9a2
parent425e392466f139a3ed349d65b2d556b4dd56304e
hostapd: return PID on config_add call

To simplify the way netifd acquires the PIDs of wpa_supplicant and
hostapd let the config_add method of both of them return the PID of the
called process. Use the returned PID instead of querying procd when
adding wpa_supplicant configuration.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
package/network/services/hostapd/Makefile
package/network/services/hostapd/files/hostapd.sh
package/network/services/hostapd/src/src/ap/ubus.c
package/network/services/hostapd/src/wpa_supplicant/ubus.c