hostapd: add ubus reload
authorJohn Crispin <john@phrozen.org>
Wed, 30 Oct 2019 15:57:22 +0000 (16:57 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Tue, 12 Nov 2019 10:52:26 +0000 (11:52 +0100)
commit60fb4c92b6b0d1582d31e02167b90b424185f3a2
treef707a8fe5cc2e1abf21b51d38f9767f1b1d69996
parent155ede4f1fdb192b11f8ae2dbffda5f7ef4903bd
hostapd: add ubus reload

Add ubus interface to hostapd and wpa_supplicant to allow dynamically
reloading wiface configuration without having to restart the hostapd
process.
As a consequence, both hostapd and wpa_supplicant are now started
persistently on boot for each wifi device in the system and then
receive ubus calls adding, modifying or removing interface
configuration.
At a later stage it would be desirable to reduce the services to one
single instance managing all radios.

Signed-off-by: John Crispin <john@phrozen.org>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
package/network/services/hostapd/Makefile
package/network/services/hostapd/files/hostapd.hotplug [new file with mode: 0644]
package/network/services/hostapd/files/hostapd.sh
package/network/services/hostapd/patches/600-ubus_support.patch
package/network/services/hostapd/patches/700-wifi-reload.patch [new file with mode: 0644]
package/network/services/hostapd/src/src/ap/ubus.c
package/network/services/hostapd/src/src/ap/ubus.h
package/network/services/hostapd/src/wpa_supplicant/ubus.c
package/network/services/hostapd/src/wpa_supplicant/ubus.h