Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openwrt/luci.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorDavid Bauer <mail@david-bauer.net>2021-06-05 20:04:11 +0300
committerGitHub <noreply@github.com>2021-06-05 20:04:11 +0300
commit516c58e133054d281c00ca5e21995e86393160b5 (patch)
treef8c85a81e29ffc1a32abafd817125250917734ea /libs
parenta6c0ad00b28a5d3f91338b50f7e69fbd45f2154e (diff)
parent4b17f8baa3574527dc6ab8914fd322a08cb9784c (diff)
Merge pull request #5070 from blocktrron/pr-luci-wifi6
luci-mod-network: add 802.11ax HE support
Diffstat (limited to 'libs')
-rw-r--r--libs/rpcd-mod-luci/src/luci.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/libs/rpcd-mod-luci/src/luci.c b/libs/rpcd-mod-luci/src/luci.c
index 030dabb823..258d2ec86b 100644
--- a/libs/rpcd-mod-luci/src/luci.c
+++ b/libs/rpcd-mod-luci/src/luci.c
@@ -879,6 +879,9 @@ static bool rpc_luci_get_iwinfo(struct blob_buf *buf, const char *devname,
if (!iw->hwmodelist(devname, &nret)) {
a = blobmsg_open_array(buf, "hwmodes");
+ if (nret & IWINFO_80211_AX)
+ blobmsg_add_string(buf, NULL, "ax");
+
if (nret & IWINFO_80211_AC)
blobmsg_add_string(buf, NULL, "ac");
@@ -921,6 +924,18 @@ static bool rpc_luci_get_iwinfo(struct blob_buf *buf, const char *devname,
if (nret & IWINFO_HTMODE_VHT160)
blobmsg_add_string(buf, NULL, "VHT160");
+ if (nret & IWINFO_HTMODE_HE20)
+ blobmsg_add_string(buf, NULL, "HE20");
+
+ if (nret & IWINFO_HTMODE_HE40)
+ blobmsg_add_string(buf, NULL, "HE40");
+
+ if (nret & IWINFO_HTMODE_HE80)
+ blobmsg_add_string(buf, NULL, "HE80");
+
+ if (nret & IWINFO_HTMODE_HE160)
+ blobmsg_add_string(buf, NULL, "HE160");
+
blobmsg_close_array(buf, a);
}