luci-base: Use getMode in getActiveMode
Signed-off-by: Evan Benn <evan.benn@morsemicro.com>
This commit is contained in:
parent
23931c3778
commit
e02df6505f
1 changed files with 1 additions and 1 deletions
|
@ -3837,7 +3837,7 @@ WifiNetwork = baseclass.extend(/** @lends LuCI.network.WifiNetwork.prototype */
|
|||
* - `Unknown`
|
||||
*/
|
||||
getActiveMode: function() {
|
||||
var mode = this.ubus('net', 'iwinfo', 'mode') || this.ubus('net', 'config', 'mode') || this.get('mode') || 'ap';
|
||||
var mode = this.ubus('net', 'iwinfo', 'mode') || this.getMode();
|
||||
|
||||
switch (mode) {
|
||||
case 'ap': return 'Master';
|
||||
|
|
Loading…
Reference in a new issue