  PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
 -PKG_BUILD_DEPENDS := respondd
  
- include $(INCLUDE_DIR)/package.mk
+ include ../gluon.mk
  
-@@ -13,7 +12,7 @@ define Package/gluon-status-page-api
+@@ -14,7 +13,7 @@ define Package/gluon-status-page-api
    SECTION:=gluon
    CATEGORY:=Gluon
    TITLE:=API for gluon-status-page
--  DEPENDS:=+gluon-core +uhttpd +sse-multiplex +batman-adv-visdata +gluon-neighbour-info +gluon-respondd +libiwinfo +libjson-c
-+  DEPENDS:=+gluon-core +uhttpd +sse-multiplex +gluon-neighbour-info +libiwinfo +libjson-c
+-  DEPENDS:=+gluon-core +uhttpd +sse-multiplex +gluon-neighbour-info +gluon-respondd +libiwinfo +libjson-c +libnl-tiny +libubus-lua
++  DEPENDS:=+gluon-core +uhttpd +sse-multiplex +gluon-neighbour-info +libiwinfo +libjson-c +libubus-lua
  endef
  
  define Build/Prepare
-@@ -26,9 +25,6 @@ define Package/gluon-status-page-api/install
+@@ -32,9 +31,6 @@ define Package/gluon-status-page-api/install
  	$(INSTALL_BIN) $(PKG_BUILD_DIR)/neighbours-batadv $(1)/lib/gluon/status-page/providers/
  	$(INSTALL_BIN) $(PKG_BUILD_DIR)/stations $(1)/lib/gluon/status-page/providers/
  

-	uci_free_context(ctx);
-}
-
-static struct json_object * get_clients(void) {
-	size_t total = 0, wifi = 0, wifi24 = 0, wifi5 = 0;
-
-	FILE *f = fopen("/sys/kernel/debug/batman_adv/bat0/transtable_local", "r");
-	if (!f)
-		return NULL;
-
-	char *line = NULL;
-	size_t len = 0;
-
-	while (getline(&line, &len, f) >= 0) {
-		char flags[16];
-
-		if (sscanf(line, " * %*[^[] [%15[^]]]", flags) != 1)
-			continue;
-
-		if (strchr(flags, 'P'))
-			continue;
-
-		total++;
-
-		if (strchr(flags, 'W'))
-			wifi++;
-	}
-
-	free(line);
-	fclose(f);
-
-	count_stations(&wifi24, &wifi5);
-
-	struct json_object *ret = json_object_new_object();
-	json_object_object_add(ret, "total", json_object_new_int(total));
-	json_object_object_add(ret, "wifi", json_object_new_int(wifi));
-	json_object_object_add(ret, "wifi24", json_object_new_int(wifi24));
-	json_object_object_add(ret, "wifi5", json_object_new_int(wifi5));
-	return ret;

 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
-PKG_BUILD_DEPENDS := respondd
 
 include ../gluon.mk
 
@@ -19,14 +18,10 @@ endef
 
 define Build/Prepare
 	mkdir -p $(PKG_BUILD_DIR)
-	$(CP) ./src/* $(PKG_BUILD_DIR)/
