]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
wifi-scripts: add missing 802.11be type in hwmodelist main master 21267/head
authorElwin Huang <s09289728096@gmail.com>
Wed, 24 Dec 2025 06:01:32 +0000 (14:01 +0800)
committerNick Hainke <vincent@systemli.org>
Thu, 25 Dec 2025 18:45:41 +0000 (19:45 +0100)
Add EHT* check so that the hwmode will display 802.11be capability correctly.

Signed-off-by: Elwin Huang <s09289728096@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21267
Signed-off-by: Nick Hainke <vincent@systemli.org>
package/network/config/wifi-scripts/files-ucode/usr/share/ucode/iwinfo.uc

index b2eb8cfd10343b97b3b3e6607a30dd58b0ab7ccf..554ed71d3b4d39c2cf537fc73ed4878b80465208 100644 (file)
@@ -316,7 +316,7 @@ function dbm2quality(dbm) {
 }
 
 function hwmodelist(name) {
 }
 
 function hwmodelist(name) {
-       const mode = { 'HT*': 'n', 'VHT*': 'ac', 'HE*': 'ax' };
+       const mode = { 'HT*': 'n', 'VHT*': 'ac', 'HE*': 'ax', 'EHT*': 'be' };
        let iface = ifaces[name];
        let phy = board_data.wlan?.['phy' + iface.wiphy];
        if (!phy || !iface.radio?.band)
        let iface = ifaces[name];
        let phy = board_data.wlan?.['phy' + iface.wiphy];
        if (!phy || !iface.radio?.band)