blob: e71ca9b662da68ef486b7157a2bba2ae502469b2 [file] [log] [blame]
developer42c7a432024-07-12 14:39:29 +08001From 5201393755c54df7469a36d771f6eefdbf230fd1 Mon Sep 17 00:00:00 2001
developer15c355d2023-03-21 17:28:34 +08002From: StanleyYP Wang <StanleyYP.Wang@mediatek.com>
3Date: Thu, 2 Mar 2023 10:07:05 +0800
developer2299de92023-10-27 15:40:47 +08004Subject: [PATCH] Add support for 5G U-NII-3 & 6G BW320
developer15c355d2023-03-21 17:28:34 +08005
6Signed-off-by: StanleyYP Wang <StanleyYP.Wang@mediatek.com>
7---
developer2299de92023-10-27 15:40:47 +08008 phy.c | 4 ++--
developer42c7a432024-07-12 14:39:29 +08009 util.c | 10 +++++-----
10 2 files changed, 7 insertions(+), 7 deletions(-)
developer15c355d2023-03-21 17:28:34 +080011
12diff --git a/phy.c b/phy.c
developer42c7a432024-07-12 14:39:29 +080013index 4722125..abe94db 100644
developer15c355d2023-03-21 17:28:34 +080014--- a/phy.c
15+++ b/phy.c
16@@ -200,13 +200,13 @@ static int handle_freq(struct nl80211_state *state, struct nl_msg *msg,
17
18 COMMAND(set, freq,
developer42c7a432024-07-12 14:39:29 +080019 "<freq> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz|160MHz|320MHz]\n"
developer15c355d2023-03-21 17:28:34 +080020- "<control freq> [5|10|20|40|80|80+80|160] [<center1_freq> [<center2_freq>]]",
21+ "<control freq> [5|10|20|40|80|80+80|160|320] [<center1_freq> [<center2_freq>]]",
22 NL80211_CMD_SET_WIPHY, 0, CIB_PHY, handle_freq,
23 "Set frequency/channel the hardware is using, including HT\n"
24 "configuration.");
25 COMMAND(set, freq,
developer42c7a432024-07-12 14:39:29 +080026 "<freq> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz|160MHz|320MHz]\n"
developer15c355d2023-03-21 17:28:34 +080027- "<control freq> [5|10|20|40|80|80+80|160] [<center1_freq> [<center2_freq>]]",
28+ "<control freq> [5|10|20|40|80|80+80|160|320] [<center1_freq> [<center2_freq>]]",
29 NL80211_CMD_SET_WIPHY, 0, CIB_NETDEV, handle_freq, NULL);
30
developer42c7a432024-07-12 14:39:29 +080031 static int handle_freq_khz(struct nl80211_state *state, struct nl_msg *msg,
developer15c355d2023-03-21 17:28:34 +080032diff --git a/util.c b/util.c
developer42c7a432024-07-12 14:39:29 +080033index d36dbdc..818dc96 100644
developer15c355d2023-03-21 17:28:34 +080034--- a/util.c
35+++ b/util.c
developer42c7a432024-07-12 14:39:29 +080036@@ -1750,11 +1750,11 @@ int get_cf1(const struct chanmode *chanmode, unsigned long freq)
developer2299de92023-10-27 15:40:47 +080037 {
38 unsigned int cf1 = freq, j;
39 unsigned int bw80[] = { 5180, 5260, 5500, 5580, 5660, 5745,
40- 5955, 6035, 6115, 6195, 6275, 6355,
41- 6435, 6515, 6595, 6675, 6755, 6835,
42- 6195, 6995 };
43- unsigned int bw160[] = { 5180, 5500, 5955, 6115, 6275, 6435,
44- 6595, 6755, 6915 };
45+ 5825, 5955, 6035, 6115, 6195, 6275,
46+ 6355, 6435, 6515, 6595, 6675, 6755,
47+ 6835, 6915, 6995 };
48+ unsigned int bw160[] = { 5180, 5500, 5745, 5955, 6115, 6275,
49+ 6435, 6595, 6755, 6915 };
developer42c7a432024-07-12 14:39:29 +080050 /* based on 11be D2 E.1 Country information and operating classes */
51 unsigned int bw320[] = {5955, 6115, 6275, 6435, 6595, 6755};
developer2299de92023-10-27 15:40:47 +080052
developer15c355d2023-03-21 17:28:34 +080053--
542.18.0
55