[OpenWrt-Devel] hostapd: start hostapd/wpa_supplicant for all wiphy devices
diff mbox series

Message ID 20200120183501.29372-1-pepe2k@gmail.com
State Accepted
Delegated to: Piotr Dymacz
Headers show
  • [OpenWrt-Devel] hostapd: start hostapd/wpa_supplicant for all wiphy devices
Related show

Commit Message

Piotr Dymacz Jan. 20, 2020, 6:35 p.m. UTC
c888e17e06 ("hostapd: manage instances via procd instead of pidfile")
added procd support for managing hostapd and wpa_supplicant daemons
but at the same time limited wiphy names to 'phy*'.

This brings back initial behaviour (introduced in 60fb4c92b6 ("hostapd:
add ubus reload") and makes procd manage daemons for any wiphy device
found in '/sys/class/ieee80211'.

CC: Felix Fietkau <nbd@nbd.name>
CC: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
 package/network/services/hostapd/Makefile              | 2 +-
 package/network/services/hostapd/files/hostapd.hotplug | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff mbox series

diff --git a/package/network/services/hostapd/Makefile b/package/network/services/hostapd/Makefile
index 2642a263dc..1b6434674a 100644
--- a/package/network/services/hostapd/Makefile
+++ b/package/network/services/hostapd/Makefile
@@ -7,7 +7,7 @@ 
 include $(TOPDIR)/rules.mk
diff --git a/package/network/services/hostapd/files/hostapd.hotplug b/package/network/services/hostapd/files/hostapd.hotplug
index c319d42c1a..2c936fde75 100644
--- a/package/network/services/hostapd/files/hostapd.hotplug
+++ b/package/network/services/hostapd/files/hostapd.hotplug
@@ -21,7 +21,7 @@  service_data() {
 procd_open_service hostapd
-for phy in phy*; do
+for phy in *; do
 	[ -d "$phy" ] || continue
 	mkdir -p /var/run/wpa_supplicant-$phy /var/run/hostapd-$phy