mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-29 09:32:34 +00:00
34 lines
1.2 KiB
Diff
34 lines
1.2 KiB
Diff
From 53f86d4cd4399473090fec41d689ec8675d691ee Mon Sep 17 00:00:00 2001
|
|
From: John Crispin <john@phrozen.org>
|
|
Date: Thu, 12 May 2022 09:31:11 +0200
|
|
Subject: [PATCH 13/43] iwinfo: add 6E support
|
|
|
|
Signed-off-by: John Crispin <john@phrozen.org>
|
|
---
|
|
package/network/utils/iwinfo/patches/100-6g.patch | 13 +++++++++++++
|
|
1 file changed, 13 insertions(+)
|
|
create mode 100644 package/network/utils/iwinfo/patches/100-6g.patch
|
|
|
|
diff --git a/package/network/utils/iwinfo/patches/100-6g.patch b/package/network/utils/iwinfo/patches/100-6g.patch
|
|
new file mode 100644
|
|
index 0000000000..45472e8ccf
|
|
--- /dev/null
|
|
+++ b/package/network/utils/iwinfo/patches/100-6g.patch
|
|
@@ -0,0 +1,13 @@
|
|
+Index: libiwinfo-2021-06-09-c0414642/iwinfo_nl80211.c
|
|
+===================================================================
|
|
+--- libiwinfo-2021-06-09-c0414642.orig/iwinfo_nl80211.c
|
|
++++ libiwinfo-2021-06-09-c0414642/iwinfo_nl80211.c
|
|
+@@ -642,6 +642,8 @@ static int nl80211_freq2channel(int freq
|
|
+ return (freq - 4000) / 5;
|
|
+ else if(freq >= 56160 + 2160 * 1 && freq <= 56160 + 2160 * 6)
|
|
+ return (freq - 56160) / 2160;
|
|
++ else if (freq >= 5955 && freq <= 7115)
|
|
++ return (freq - 5950) / 5;
|
|
+ else
|
|
+ return (freq - 5000) / 5;
|
|
+ }
|
|
--
|
|
2.34.1
|
|
|