-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
luci-wireless: add 11be support #7279
base: master
Are you sure you want to change the base?
Conversation
The forked luci project contains a patch [1] that will enable BE standard. [1] - openwrt/luci#7279
the below are now released RPCD - openwrt/rpcd#5 |
@hnyman would you mind to have a look at this pr? both the RPCD and iwinfo PRs have been committed. thank you |
What do you mean, 'released'?
|
yes those dependent PRs have been merged |
merged.... where? |
The forked luci project contains a patch [1] that will enable BE standard. [1] - openwrt/luci#7279 (cherry picked from commit 4d65ad8)
Ah, OK. I see now. That was confusing because your linked PRs were/are not merged. |
yes I was confused also ... but it got there eventually somehow ;) |
modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js
Show resolved
Hide resolved
modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js
Show resolved
Hide resolved
modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js
Outdated
Show resolved
Hide resolved
modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js
Outdated
Show resolved
Hide resolved
modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js
Outdated
Show resolved
Hide resolved
You should also update --- a/modules/luci-base/htdocs/luci-static/resources/network.js
+++ b/modules/luci-base/htdocs/luci-static/resources/network.js
@@ -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'); |
b9c2e75
to
8b741d1
Compare
ff4fa3e
to
9a209f5
Compare
The forked luci project contains a patch [1] that will enable BE standard. [1] - openwrt/luci#7279 (cherry picked from commit 4d65ad8)
c9c3e99
to
e25d4f2
Compare
modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js
Show resolved
Hide resolved
The forked luci project contains a patch [1] that will enable BE standard. [1] - openwrt/luci#7279 (cherry picked from commit 4d65ad8)
The forked luci project contains a patch [1] that will enable BE standard. [1] - openwrt/luci#7279 (cherry picked from commit 4d65ad8)
The forked luci project contains a patch [1] that will enable BE standard. [1] - openwrt/luci#7279 (cherry picked from commit 4d65ad8)
@systemcrash @hnyman @dannil anything you need in order to approve this PR ? thank you |
Please remove all merge commits and just rebase on master. Squash all your commits into one. |
7cf7954
to
0993f0c
Compare
thank you @systemcrash let me know if looks fine as per your ask |
squash all your commits please |
@systemcrash sorry my rebase -i (a single pick and the remaining commit squash) somehow didn't squashed it into a single commit ... there's a single commit now doing it differently hope it works for you |
Is this the branch that's continuously being integrated in the custom WiFi 7 build by @danpawlik in https://forum.openwrt.org/t/banana-bpi-r4-wifi7-status/201051/278? In that case I think we should wait for reports about eventual issues if it's being tested anyway so this PR is as complete as possible. |
@@ -3374,7 +3374,7 @@ WifiDevice = baseclass.extend(/** @lends LuCI.network.WifiDevice.prototype */ { | |||
*/ | |||
getHWModes: function() { | |||
var hwmodes = this.ubus('dev', 'iwinfo', 'hwmodes'); | |||
return Array.isArray(hwmodes) ? hwmodes : [ 'b', 'g' ]; | |||
return Array.isArray(hwmodes) ? hwmodes : [ 'b', 'g', 'n', 'ac', 'ax', 'be' ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a bit unsure about this change, what I assume happens here is that if the HW modes for a specific wireless device is returned as an array if they could be found, it will use that one as the return value of getHWModes
, and if not, it falls back to the pre-defined array.
With this change this now seems to indicate HW mode capabilities up to 802.11be for all wireless devices if they don't return a proper HW modes array. I assume the default is ['b', 'g']
since when this code was introduced, those were the supported 802.11 stacks in OpenWrt, meaning by virtue of WiFi's backwards compatibility those will be the lowest common denominators. If this is the case, it would explain why n
, ac
, and ax
was left out prior to this change.
Has this been tested on non-WiFi 7-devices and the eventual impact it might have if HW modes isn't correctly fetched for a wireless device? I've never touched this code before so any input is appreciated, I feel like this needs to be tested.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so I tested this on ip807x qualcommax (qnap) - as you can see BE doesn't show based on the iwinfo capabilities - so what I would do is to put it back to the original ... the banana pi4 still shows 'be'
let me know if you agree - probably worth adding a comment to that function on the likes of what you just made
@@ -3374,7 +3374,7 @@ WifiDevice = baseclass.extend(/** @lends LuCI.network.WifiDevice.prototype */ { | |||
*/ | |||
getHWModes: function() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a notice in the JSDoc about be
.
The forked luci project contains a patch [1] that will enable BE standard. [1] - openwrt/luci#7279 (cherry picked from commit 4d65ad8) (cherry picked from commit e759911)
This commit provides switch luci project to use branch that contains patch for BE standard [1]. The rpcd repository contains a patch [2] that will bring BE wireless standard. Also update iwinfo project to apply patches [3][4]. [1] - openwrt/luci#7279 [2] - openwrt/rpcd#5 [3] openwrt/iwinfo#11 [4] openwrt/iwinfo#10 (cherry picked from commit 97d6044)
Add 11be support Tested with banana rpi-4 Signed-off-by: Rudy Andram <[email protected]>
Add 11be support
Tested with banana rpi-4
In order to complete 11be support - the below pulls will need to be applied
RPCD - openwrt/rpcd#5
iwinfo - openwrt/iwinfo#10
Signed-off-by: Rudy Andram [email protected]