luci-base: network.js: implement getMeshID() getter
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
f1db82399a
commit
948ca3712f
1 changed files with 10 additions and 0 deletions
|
@ -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');
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue