blob: e71ca9b662da68ef486b7157a2bba2ae502469b2 [file] [log] [blame]
From 5201393755c54df7469a36d771f6eefdbf230fd1 Mon Sep 17 00:00:00 2001
From: StanleyYP Wang <StanleyYP.Wang@mediatek.com>
Date: Thu, 2 Mar 2023 10:07:05 +0800
Subject: [PATCH] Add support for 5G U-NII-3 & 6G BW320
Signed-off-by: StanleyYP Wang <StanleyYP.Wang@mediatek.com>
---
phy.c | 4 ++--
util.c | 10 +++++-----
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/phy.c b/phy.c
index 4722125..abe94db 100644
--- a/phy.c
+++ b/phy.c
@@ -200,13 +200,13 @@ static int handle_freq(struct nl80211_state *state, struct nl_msg *msg,
COMMAND(set, freq,
"<freq> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz|160MHz|320MHz]\n"
- "<control freq> [5|10|20|40|80|80+80|160] [<center1_freq> [<center2_freq>]]",
+ "<control freq> [5|10|20|40|80|80+80|160|320] [<center1_freq> [<center2_freq>]]",
NL80211_CMD_SET_WIPHY, 0, CIB_PHY, handle_freq,
"Set frequency/channel the hardware is using, including HT\n"
"configuration.");
COMMAND(set, freq,
"<freq> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz|160MHz|320MHz]\n"
- "<control freq> [5|10|20|40|80|80+80|160] [<center1_freq> [<center2_freq>]]",
+ "<control freq> [5|10|20|40|80|80+80|160|320] [<center1_freq> [<center2_freq>]]",
NL80211_CMD_SET_WIPHY, 0, CIB_NETDEV, handle_freq, NULL);
static int handle_freq_khz(struct nl80211_state *state, struct nl_msg *msg,
diff --git a/util.c b/util.c
index d36dbdc..818dc96 100644
--- a/util.c
+++ b/util.c
@@ -1750,11 +1750,11 @@ int get_cf1(const struct chanmode *chanmode, unsigned long freq)
{
unsigned int cf1 = freq, j;
unsigned int bw80[] = { 5180, 5260, 5500, 5580, 5660, 5745,
- 5955, 6035, 6115, 6195, 6275, 6355,
- 6435, 6515, 6595, 6675, 6755, 6835,
- 6195, 6995 };
- unsigned int bw160[] = { 5180, 5500, 5955, 6115, 6275, 6435,
- 6595, 6755, 6915 };
+ 5825, 5955, 6035, 6115, 6195, 6275,
+ 6355, 6435, 6515, 6595, 6675, 6755,
+ 6835, 6915, 6995 };
+ unsigned int bw160[] = { 5180, 5500, 5745, 5955, 6115, 6275,
+ 6435, 6595, 6755, 6915 };
/* based on 11be D2 E.1 Country information and operating classes */
unsigned int bw320[] = {5955, 6115, 6275, 6435, 6595, 6755};
--
2.18.0