summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/network.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/network.js b/modules/luci-base/htdocs/luci-static/resources/network.js
index a85e2414b..a9e65dac5 100644
--- a/modules/luci-base/htdocs/luci-static/resources/network.js
+++ b/modules/luci-base/htdocs/luci-static/resources/network.js
@@ -2121,9 +2121,19 @@ WifiNetwork = L.Class.extend({
},
getSSID: function() {
+ if (this.getMode() == 'mesh')
+ return null;
+
return this.ubus('net', 'config', 'ssid') || this.get('ssid');
},
+ getMeshID: function() {
+ if (this.getMode() != 'mesh')
+ return null;
+
+ return this.ubus('net', 'config', 'mesh_id') || this.get('mesh_id');
+ },
+
getBSSID: function() {
return this.ubus('net', 'config', 'bssid') || this.get('bssid');
},