* Query the current operation mode from runtime information.
*
* @returns {string}
- * Returns the human readable mode name as reported by `ubus` runtime
- * state. Possible returned values are:
+ * Returns the human readable mode name as reported by iwinfo or uci mode.
+ * Possible returned values are:
* - `Master`
* - `Ad-Hoc`
* - `Client`
case 'ap': return 'Master';
case 'sta': return 'Client';
case 'adhoc': return 'Ad-Hoc';
- case 'mesh': return 'Mesh';
+ case 'mesh': return 'Mesh Point';
case 'monitor': return 'Monitor';
default: return mode;
}
var mode = this.getActiveMode();
switch (mode) {
- case 'Master': return _('Master');
- case 'Client': return _('Client');
- case 'Ad-Hoc': return _('Ad-Hoc');
- case 'Mash': return _('Mesh');
- case 'Monitor': return _('Monitor');
- default: return mode;
+ case 'Master': return _('Master');
+ case 'Ad-Hoc': return _('Ad-Hoc');
+ case 'Client': return _('Client');
+ case 'Monitor': return _('Monitor');
+ case 'Master(VLAN)': return _('Master (VLAN)');
+ case 'WDS': return _('WDS');
+ case 'Mesh Point': return _('Mesh Point');
+ case 'P2P Client': return _('P2P Client');
+ case 'P2P Go': return _('P2P Go');
+ case 'Unknown': return _('Unknown');
+ default: return mode;
}
},
if m == "ap" then m = "Master"
elseif m == "sta" then m = "Client"
elseif m == "adhoc" then m = "Ad-Hoc"
- elseif m == "mesh" then m = "Mesh"
+ elseif m == "mesh" then m = "Mesh Point"
elseif m == "monitor" then m = "Monitor"
end