1 /** @file wlan_txpwrlimit_cfg_murata_2DS_US.h
2  *
3  *  @brief  This file provides Murata 2DS WLAN US Tx Power Limit APIs.
4  *
5  *  Copyright 2022 Murata Manufacturing Co., Ltd.
6  *
7  *  Redistribution and use in source and binary forms, with or without
8  *  modification, are permitted provided that the following conditions are met:
9  *
10  *  1. Redistributions of source code must retain the above copyright notice, this
11  *  list of conditions and the following disclaimer.
12  *
13  *  2. Redistributions in binary form must reproduce the above copyright notice,
14  *  this list of conditions and the following disclaimer in the documentation
15  *  and/or other materials provided with the distribution.
16  *
17  *  3. Neither the name of the copyright holder nor the names of its contributors
18  *  may be used to endorse or promote products derived from this software without
19  *  specific prior written permission.
20  *
21  *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
22  *  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
23  *  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24  *  DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
25  *  FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26  *  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
27  *  SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
28  *  CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
29  *  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30  *  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
32  *  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
33  *  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
34  *  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
35  *  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
36  *  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
37  *  SOFTWARE.
38  */
39 
40 #ifndef _WLAN_TXPWRLIMIT_CFG_MURATA_2DS_US_H_
41 #define _WLAN_TXPWRLIMIT_CFG_MURATA_2DS_US_H_
42 #define WLAN_REGION_CODE "US"
43 
44 static wlan_chanlist_t chanlist_2g_cfg = {.num_chans = 11,
45                                           .chan_info = {
46                                               [0] =
47                                                   {
48                                                       .chan_num                     = 1,
49                                                       .chan_freq                    = 2412,
50                                                       .passive_scan_or_radar_detect = false,
51                                                   },
52                                               [1] =
53                                                   {
54                                                       .chan_num                     = 2,
55                                                       .chan_freq                    = 2417,
56                                                       .passive_scan_or_radar_detect = false,
57                                                   },
58                                               [2] =
59                                                   {
60                                                       .chan_num                     = 3,
61                                                       .chan_freq                    = 2422,
62                                                       .passive_scan_or_radar_detect = false,
63                                                   },
64                                               [3] =
65                                                   {
66                                                       .chan_num                     = 4,
67                                                       .chan_freq                    = 2427,
68                                                       .passive_scan_or_radar_detect = false,
69                                                   },
70                                               [4] =
71                                                   {
72                                                       .chan_num                     = 5,
73                                                       .chan_freq                    = 2432,
74                                                       .passive_scan_or_radar_detect = false,
75                                                   },
76                                               [5] =
77                                                   {
78                                                       .chan_num                     = 6,
79                                                       .chan_freq                    = 2437,
80                                                       .passive_scan_or_radar_detect = false,
81                                                   },
82                                               [6] =
83                                                   {
84                                                       .chan_num                     = 7,
85                                                       .chan_freq                    = 2442,
86                                                       .passive_scan_or_radar_detect = false,
87                                                   },
88                                               [7] =
89                                                   {
90                                                       .chan_num                     = 8,
91                                                       .chan_freq                    = 2447,
92                                                       .passive_scan_or_radar_detect = false,
93                                                   },
94                                               [8] =
95                                                   {
96                                                       .chan_num                     = 9,
97                                                       .chan_freq                    = 2452,
98                                                       .passive_scan_or_radar_detect = false,
99                                                   },
100                                               [9] =
101                                                   {
102                                                       .chan_num                     = 10,
103                                                       .chan_freq                    = 2457,
104                                                       .passive_scan_or_radar_detect = false,
105                                                   },
106                                               [10] =
107                                                   {
108                                                       .chan_num                     = 11,
109                                                       .chan_freq                    = 2462,
110                                                       .passive_scan_or_radar_detect = false,
111                                                   },
112                                               [11] = {0},
113                                               [12] = {0},
114                                               [13] = {0},
115                                               [14] = {0},
116                                               [15] = {0},
117                                               [16] = {0},
118                                               [17] = {0},
119                                               [18] = {0},
120                                               [19] = {0},
121                                               [20] = {0},
122                                               [21] = {0},
123                                               [22] = {0},
124                                               [23] = {0},
125                                               [24] = {0},
126                                               [25] = {0},
127                                               [26] = {0},
128                                               [27] = {0},
129                                               [28] = {0},
130                                               [29] = {0},
131                                               [30] = {0},
132                                               [31] = {0},
133                                               [32] = {0},
134                                               [33] = {0},
135                                               [34] = {0},
136                                               [35] = {0},
137                                               [36] = {0},
138                                               [37] = {0},
139                                               [38] = {0},
140                                               [39] = {0},
141                                               [40] = {0},
142                                               [41] = {0},
143                                               [42] = {0},
144                                               [43] = {0},
145                                               [44] = {0},
146                                               [45] = {0},
147                                               [46] = {0},
148                                               [47] = {0},
149                                               [48] = {0},
150                                               [49] = {0},
151                                               [50] = {0},
152                                               [51] = {0},
153                                               [52] = {0},
154                                               [53] = {0},
155                                           }};
156 
157 static wifi_txpwrlimit_t
158     tx_pwrlimit_2g_cfg =
159         {.subband   = (wifi_SubBand_t)0x00,
160          .num_chans = 11,
161          .txpwrlimit_config =
162              {
163                  [0] =
164                      {
165                          .num_mod_grps = 10,
166                          .chan_desc =
167                              {
168                                  .start_freq = 2407,
169                                  .chan_width = 20,
170                                  .chan_num   = 1,
171                              },
172                          .txpwrlimit_entry =
173                              {{0, 17}, {1, 12}, {2, 12}, {3, 12}, {4, 11}, {5, 11}, {6, 11}, {7, 0}, {8, 0}, {9, 0}},
174                      },
175                  [1] =
176                      {
177                          .num_mod_grps = 10,
178                          .chan_desc =
179                              {
180                                  .start_freq = 2407,
181                                  .chan_width = 20,
182                                  .chan_num   = 2,
183                              },
184                          .txpwrlimit_entry =
185                              {{0, 17}, {1, 15}, {2, 14}, {3, 14}, {4, 15}, {5, 15}, {6, 14}, {7, 0}, {8, 0}, {9, 0}},
186                      },
187                  [2] =
188                      {
189                          .num_mod_grps = 10,
190                          .chan_desc =
191                              {
192                                  .start_freq = 2407,
193                                  .chan_width = 20,
194                                  .chan_num   = 3,
195                              },
196                          .txpwrlimit_entry =
197                              {{0, 17}, {1, 15}, {2, 14}, {3, 14}, {4, 15}, {5, 15}, {6, 14}, {7, 0}, {8, 0}, {9, 0}},
198                      },
199                  [3] =
200                      {
201                          .num_mod_grps = 10,
202                          .chan_desc =
203                              {
204                                  .start_freq = 2407,
205                                  .chan_width = 20,
206                                  .chan_num   = 4,
207                              },
208                          .txpwrlimit_entry =
209                              {{0, 17}, {1, 15}, {2, 14}, {3, 14}, {4, 15}, {5, 15}, {6, 14}, {7, 0}, {8, 0}, {9, 0}},
210                      },
211                  [4] =
212                      {
213                          .num_mod_grps = 10,
214                          .chan_desc =
215                              {
216                                  .start_freq = 2407,
217                                  .chan_width = 20,
218                                  .chan_num   = 5,
219                              },
220                          .txpwrlimit_entry =
221                              {{0, 17}, {1, 15}, {2, 14}, {3, 14}, {4, 15}, {5, 15}, {6, 14}, {7, 0}, {8, 0}, {9, 0}},
222                      },
223                  [5] =
224                      {
225                          .num_mod_grps = 10,
226                          .chan_desc =
227                              {
228                                  .start_freq = 2407,
229                                  .chan_width = 20,
230                                  .chan_num   = 6,
231                              },
232                          .txpwrlimit_entry =
233                              {{0, 17}, {1, 15}, {2, 14}, {3, 14}, {4, 15}, {5, 15}, {6, 14}, {7, 0}, {8, 0}, {9, 0}},
234                      },
235                  [6] =
236                      {
237                          .num_mod_grps = 10,
238                          .chan_desc =
239                              {
240                                  .start_freq = 2407,
241                                  .chan_width = 20,
242                                  .chan_num   = 7,
243                              },
244                          .txpwrlimit_entry =
245                              {{0, 17}, {1, 15}, {2, 14}, {3, 14}, {4, 15}, {5, 15}, {6, 14}, {7, 0}, {8, 0}, {9, 0}},
246                      },
247                  [7] =
248                      {
249                          .num_mod_grps = 10,
250                          .chan_desc =
251                              {
252                                  .start_freq = 2407,
253                                  .chan_width = 20,
254                                  .chan_num   = 8,
255                              },
256                          .txpwrlimit_entry =
257                              {{0, 17}, {1, 15}, {2, 14}, {3, 14}, {4, 15}, {5, 15}, {6, 14}, {7, 0}, {8, 0}, {9, 0}},
258                      },
259                  [8] =
260                      {
261                          .num_mod_grps = 10,
262                          .chan_desc =
263                              {
264                                  .start_freq = 2407,
265                                  .chan_width = 20,
266                                  .chan_num   = 9,
267                              },
268                          .txpwrlimit_entry =
269                              {{0, 17}, {1, 15}, {2, 14}, {3, 14}, {4, 15}, {5, 15}, {6, 14}, {7, 0}, {8, 0}, {9, 0}},
270                      },
271                  [9] =
272                      {
273                          .num_mod_grps = 10,
274                          .chan_desc =
275                              {
276                                  .start_freq = 2407,
277                                  .chan_width = 20,
278                                  .chan_num   = 10,
279                              },
280                          .txpwrlimit_entry =
281                              {{0, 17}, {1, 15}, {2, 14}, {3, 14}, {4, 15}, {5, 15}, {6, 14}, {7, 0}, {8, 0}, {9, 0}},
282                      },
283                  [10] =
284                      {
285                          .num_mod_grps = 10,
286                          .chan_desc =
287                              {
288                                  .start_freq = 2407,
289                                  .chan_width = 20,
290                                  .chan_num   = 11,
291                              },
292                          .txpwrlimit_entry =
293                              {{0, 17}, {1, 12}, {2, 12}, {3, 12}, {4, 11}, {5, 11}, {6, 11}, {7, 0}, {8, 0}, {9, 0}},
294                      },
295                  [11] = {0},
296                  [12] = {0},
297                  [13] = {0},
298                  [14] = {0},
299                  [15] = {0},
300                  [16] = {0},
301                  [17] = {0},
302                  [18] = {0},
303                  [19] = {0},
304                  [20] = {0},
305                  [21] = {0},
306                  [22] = {0},
307                  [23] = {0},
308                  [24] = {0},
309                  [25] = {0},
310                  [26] = {0},
311                  [27] = {0},
312                  [28] = {0},
313                  [29] = {0},
314                  [30] = {0},
315                  [31] = {0},
316                  [32] = {0},
317                  [33] = {0},
318                  [34] = {0},
319                  [35] = {0},
320                  [36] = {0},
321                  [37] = {0},
322                  [38] = {0},
323                  [39] = {0},
324              }};
325 
326 #endif /* _WLAN_TXPWRLIMIT_CFG_MURATA_2DS_US_H_ */
327