Просмотр исходного кода

hostapd: do not register ubus objects for mesh interfaces

Signed-off-by: Felix Fietkau <[email protected]>
Felix Fietkau 7 лет назад
Родитель
Сommit
8f24653184
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      package/network/services/hostapd/src/src/ap/ubus.c

+ 5 - 0
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;