From 2fefdeee63e00c6862a405bae7df04f2d2c28a8e Mon Sep 17 00:00:00 2001
From: Matthias Schiffer <mschiffer@universe-factory.net>
Date: Thu, 15 Oct 2015 02:42:28 +0200
Subject: [PATCH] gluon-mesh-batman-adv-core: neighbours.d/wifi: output empty
 object instead of empty list when there are no neighbours on an interface

---
 .../files/lib/gluon/announce/neighbours.d/wifi                  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/gluon-mesh-batman-adv-core/files/lib/gluon/announce/neighbours.d/wifi b/package/gluon-mesh-batman-adv-core/files/lib/gluon/announce/neighbours.d/wifi
index 1be59f8b1..4f2b0ce22 100644
--- a/package/gluon-mesh-batman-adv-core/files/lib/gluon/announce/neighbours.d/wifi
+++ b/package/gluon-mesh-batman-adv-core/files/lib/gluon/announce/neighbours.d/wifi
@@ -32,7 +32,7 @@ end
 
 local wifi = {}
 for address, iface in pairs(interfaces()) do
-  wifi[address] = { neighbours = neighbours(iface) }
+  wifi[address] = { [{}] = true, neighbours = neighbours(iface) }
 end
 
 if next(wifi) then
-- 
GitLab