Skip to content

Commit

Permalink
luci-wireless: add 11be support
Browse files Browse the repository at this point in the history
Signed-off-by: Rudy Andram [email protected]
  • Loading branch information
rmandrad committed Sep 19, 2024
1 parent ec6f57d commit b9c2e75
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"cmake.ignoreCMakeListsMissing": true
}
5 changes: 5 additions & 0 deletions modules/luci-base/htdocs/luci-static/resources/network.js
Original file line number Diff line number Diff line change
Expand Up @@ -3396,6 +3396,11 @@ WifiDevice = baseclass.extend(/** @lends LuCI.network.WifiDevice.prototype */ {
* - `HE40` - applicable to IEEE 802.11ax, 40 MHz wide channels
* - `HE80` - applicable to IEEE 802.11ax, 80 MHz wide channels
* - `HE160` - applicable to IEEE 802.11ax, 160 MHz wide channels
* - `EHT20` - applicable to IEEE 802.11be, 20 MHz wide channels
* - `EHT40` - applicable to IEEE 802.11be, 40 MHz wide channels
* - `EHT80` - applicable to IEEE 802.11be, 80 MHz wide channels
* - `EHT160` - applicable to IEEE 802.11be, 160 MHz wide channels
* - `EHT320` - applicable to IEEE 802.11be, 320 MHz wide channels
*/
getHTModes: function() {
var htmodes = this.ubus('dev', 'iwinfo', 'htmodes');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,8 @@ var CBIWifiFrequencyValue = form.Value.extend({
'HE160', '160 MHz', htmodelist.HE160
],
'be': [
'EHT20', '20 MHz', htmodelist.EHT20,
'EHT40', '40 MHz', htmodelist.EHT40,
'EHT80', '80 MHz', htmodelist.EHT80,
'EHT160', '160 MHz', htmodelist.EHT160,
'EHT320', '320 MHz', htmodelist.EHT320
Expand All @@ -390,7 +392,7 @@ var CBIWifiFrequencyValue = form.Value.extend({
'6g', '6 GHz', this.channels['6g'].length > 3
],
'be': [
'6g', '6 GHz', this.channels['6g'].length > 3
'6g', '6 GHz', this.channels['6g'].length > 3,
],
};
}, this));
Expand Down Expand Up @@ -455,8 +457,8 @@ var CBIWifiFrequencyValue = form.Value.extend({

this.setValues(mode, this.modes);

if (/EHT80|EHT160|EHT320/.test(htval))
mode.value = 'be';
if (/EHT20|EHT40|EHT80|EHT160|EHT320/.test(htval))
mode.value = 'be';
else if (/HE20|HE40|HE80|HE160/.test(htval))
mode.value = 'ax';
else if (/VHT20|VHT40|VHT80|VHT160/.test(htval))
Expand Down

0 comments on commit b9c2e75

Please sign in to comment.