diff options
Diffstat (limited to 'modules/luci-base')
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/network.js | 10 |
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 a85e2414b6..a9e65dac51 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'); }, |