developer | 42c7a43 | 2024-07-12 14:39:29 +0800 | [diff] [blame^] | 1 | From 5201393755c54df7469a36d771f6eefdbf230fd1 Mon Sep 17 00:00:00 2001 |
developer | 15c355d | 2023-03-21 17:28:34 +0800 | [diff] [blame] | 2 | From: StanleyYP Wang <StanleyYP.Wang@mediatek.com> |
| 3 | Date: Thu, 2 Mar 2023 10:07:05 +0800 |
developer | 2299de9 | 2023-10-27 15:40:47 +0800 | [diff] [blame] | 4 | Subject: [PATCH] Add support for 5G U-NII-3 & 6G BW320 |
developer | 15c355d | 2023-03-21 17:28:34 +0800 | [diff] [blame] | 5 | |
| 6 | Signed-off-by: StanleyYP Wang <StanleyYP.Wang@mediatek.com> |
| 7 | --- |
developer | 2299de9 | 2023-10-27 15:40:47 +0800 | [diff] [blame] | 8 | phy.c | 4 ++-- |
developer | 42c7a43 | 2024-07-12 14:39:29 +0800 | [diff] [blame^] | 9 | util.c | 10 +++++----- |
| 10 | 2 files changed, 7 insertions(+), 7 deletions(-) |
developer | 15c355d | 2023-03-21 17:28:34 +0800 | [diff] [blame] | 11 | |
| 12 | diff --git a/phy.c b/phy.c |
developer | 42c7a43 | 2024-07-12 14:39:29 +0800 | [diff] [blame^] | 13 | index 4722125..abe94db 100644 |
developer | 15c355d | 2023-03-21 17:28:34 +0800 | [diff] [blame] | 14 | --- 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, |
developer | 42c7a43 | 2024-07-12 14:39:29 +0800 | [diff] [blame^] | 19 | "<freq> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz|160MHz|320MHz]\n" |
developer | 15c355d | 2023-03-21 17:28:34 +0800 | [diff] [blame] | 20 | - "<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, |
developer | 42c7a43 | 2024-07-12 14:39:29 +0800 | [diff] [blame^] | 26 | "<freq> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz|160MHz|320MHz]\n" |
developer | 15c355d | 2023-03-21 17:28:34 +0800 | [diff] [blame] | 27 | - "<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 | |
developer | 42c7a43 | 2024-07-12 14:39:29 +0800 | [diff] [blame^] | 31 | static int handle_freq_khz(struct nl80211_state *state, struct nl_msg *msg, |
developer | 15c355d | 2023-03-21 17:28:34 +0800 | [diff] [blame] | 32 | diff --git a/util.c b/util.c |
developer | 42c7a43 | 2024-07-12 14:39:29 +0800 | [diff] [blame^] | 33 | index d36dbdc..818dc96 100644 |
developer | 15c355d | 2023-03-21 17:28:34 +0800 | [diff] [blame] | 34 | --- a/util.c |
| 35 | +++ b/util.c |
developer | 42c7a43 | 2024-07-12 14:39:29 +0800 | [diff] [blame^] | 36 | @@ -1750,11 +1750,11 @@ int get_cf1(const struct chanmode *chanmode, unsigned long freq) |
developer | 2299de9 | 2023-10-27 15:40:47 +0800 | [diff] [blame] | 37 | { |
| 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 }; |
developer | 42c7a43 | 2024-07-12 14:39:29 +0800 | [diff] [blame^] | 50 | /* based on 11be D2 E.1 Country information and operating classes */ |
| 51 | unsigned int bw320[] = {5955, 6115, 6275, 6435, 6595, 6755}; |
developer | 2299de9 | 2023-10-27 15:40:47 +0800 | [diff] [blame] | 52 | |
developer | 15c355d | 2023-03-21 17:28:34 +0800 | [diff] [blame] | 53 | -- |
| 54 | 2.18.0 |
| 55 | |