[openwrt/openwrt] hostapd: do not register ubus objects for mesh interfaces

LEDE Commits lede-commits at lists.infradead.org
Sat Feb 24 12:33:43 PST 2018


nbd pushed a commit to openwrt/openwrt.git, branch master:
https://git.lede-project.org/8f24653184536e1f8259bb43cffdae5673fb593a

commit 8f24653184536e1f8259bb43cffdae5673fb593a
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Sat Feb 24 21:21:09 2018 +0100

    hostapd: do not register ubus objects for mesh interfaces
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 package/network/services/hostapd/src/src/ap/ubus.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/package/network/services/hostapd/src/src/ap/ubus.c b/package/network/services/hostapd/src/src/ap/ubus.c
index 661617b..2c310ad 100644
--- a/package/network/services/hostapd/src/src/ap/ubus.c
+++ b/package/network/services/hostapd/src/src/ap/ubus.c
@@ -938,6 +938,11 @@ void hostapd_ubus_add_bss(struct hostapd_data *hapd)
 	char *name;
 	int ret;
 
+#ifdef CONFIG_MESH
+	if (hapd->conf->mesh & MESH_ENABLED)
+		return;
+#endif
+
 	if (!hostapd_ubus_init())
 		return;
 



More information about the lede-commits mailing list