Skip to content

Commit 3010435

Browse files
MaochenWang1dleach02
authored andcommitted
mcux: support set region
When change region and country code using cmd 'nxp_wifi set-country' or 'nxp_wifi set-regioncode', the actual region and country code in 0x249 cmd is always 0x10 US. Use corresponding country code and region code to generate corresponding tx power table for 0x249 cmd. The region info can be changed normally after change. Signed-off-by: Maochen Wang <[email protected]>
1 parent 74a7735 commit 3010435

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

mcux/mcux-sdk/components/wifi_bt_module/AzureWave/tx_pwr_limits/wlan_txpwrlimit_cfg_WW_rw610.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -381,8 +381,8 @@ static const t_u8 rg_rw610_csp[] = {
381381

382382
// coverity[MISRA C-2012 Rule 2.2:SUPPRESS]
383383
static const t_u8 rg_rw610_EU[] = {
384-
0x01, 0x00, 0xee, 0x01, 0x06, 0x00, 0x55, 0x53, 0x20, 0x10, 0x00, 0x01, 0x06, 0x02, 0x8f, 0x00, 0x88, 0x88,
385-
0x03, 0x01, 0x0b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x55, 0x53, 0x20, 0x10, 0xd3, 0x07, 0x00, 0x02, 0x08, 0x06,
384+
0x01, 0x00, 0xee, 0x01, 0x06, 0x00, 0x45, 0x55, 0x20, 0x30, 0x00, 0x02, 0x06, 0x02, 0x8f, 0x00, 0x88, 0x88,
385+
0x03, 0x01, 0x0b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x45, 0x55, 0x20, 0x30, 0xd3, 0x07, 0x00, 0x02, 0x08, 0x06,
386386
0xa0, 0x00, 0x21, 0x30, 0x68, 0x02, 0x06, 0x03, 0x0a, 0x01, 0xc2, 0x60, 0x38, 0x34, 0x2e, 0x13, 0x0b, 0x83,
387387
0x04, 0xa0, 0xb0, 0x30, 0x10, 0x50, 0x12, 0x13, 0x00, 0x84, 0x80, 0x30, 0xd0, 0x64, 0x6a, 0x0c, 0x11, 0x82,
388388
0x8a, 0xe4, 0x00, 0x02, 0x38, 0x42, 0x42, 0x00, 0x02, 0x00, 0xc1, 0xe0, 0x00, 0x2a, 0x00, 0x22, 0x03, 0x8d,
@@ -393,8 +393,8 @@ static const t_u8 rg_rw610_EU[] = {
393393

394394
// coverity[MISRA C-2012 Rule 2.2:SUPPRESS]
395395
static const t_u8 rg_rw610_JP[] = {
396-
0x01, 0x00, 0xee, 0x01, 0x06, 0x00, 0x55, 0x53, 0x20, 0x10, 0x00, 0x01, 0x06, 0x02, 0x81, 0x00, 0x88, 0x88,
397-
0x03, 0x01, 0x0b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x55, 0x53, 0x20, 0x10, 0xf3, 0x06, 0x00, 0x02, 0x08, 0x07,
396+
0x01, 0x00, 0xee, 0x01, 0x06, 0x00, 0x4a, 0x50, 0x20, 0x40, 0x00, 0x03, 0x06, 0x02, 0x81, 0x00, 0x88, 0x88,
397+
0x03, 0x01, 0x0b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x4a, 0x50, 0x20, 0x40, 0xf3, 0x06, 0x00, 0x02, 0x08, 0x07,
398398
0x04, 0xc1, 0xe1, 0x40, 0x50, 0x48, 0x02, 0x11, 0x00, 0x80, 0x20, 0xe0, 0x18, 0x30, 0x50, 0x10, 0x12, 0x01,
399399
0x42, 0x21, 0x50, 0x80, 0x90, 0x2e, 0x25, 0x0b, 0x86, 0xc3, 0xe2, 0x30, 0x98, 0xc0, 0x04, 0x27, 0x1a, 0x8b,
400400
0x84, 0x41, 0xa0, 0x01, 0x5c, 0x88, 0x00, 0x47, 0x08, 0x48, 0xc5, 0x60, 0x00, 0x20, 0x0c, 0x1e, 0x80, 0x0b,
@@ -405,8 +405,8 @@ static const t_u8 rg_rw610_JP[] = {
405405

406406
// coverity[MISRA C-2012 Rule 2.2:SUPPRESS]
407407
static const t_u8 rg_rw610_CA[] = {
408-
0x01, 0x00, 0xee, 0x01, 0x06, 0x00, 0x55, 0x53, 0x20, 0x10, 0x00, 0x01, 0x06, 0x02, 0xa6, 0x00, 0x88, 0x88,
409-
0x03, 0x01, 0x0b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x55, 0x53, 0x20, 0x10, 0x43, 0x09, 0x00, 0x02, 0x08, 0x06,
408+
0x01, 0x00, 0xee, 0x01, 0x06, 0x00, 0x43, 0x4e, 0x20, 0x50, 0x00, 0x01, 0x06, 0x02, 0xa6, 0x00, 0x88, 0x88,
409+
0x03, 0x01, 0x0b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x43, 0x4e, 0x20, 0x50, 0x43, 0x09, 0x00, 0x02, 0x08, 0x06,
410410
0xa0, 0x00, 0x21, 0x30, 0x58, 0x38, 0x02, 0x0d, 0x00, 0x80, 0x00, 0x21, 0x20, 0x40, 0x44, 0x02, 0x10, 0x00,
411411
0x83, 0x00, 0x20, 0x58, 0x48, 0x0a, 0x19, 0x0e, 0x88, 0x44, 0xa2, 0x80, 0x08, 0xb4, 0x36, 0x1f, 0x11, 0x89,
412412
0xc5, 0x41, 0xf1, 0xf0, 0x88, 0x1a, 0x21, 0x23, 0x8d, 0x48, 0xa4, 0x92, 0x60, 0x0c, 0xa2, 0x43, 0x1c, 0x91,
@@ -419,8 +419,8 @@ static const t_u8 rg_rw610_CA[] = {
419419

420420
// coverity[MISRA C-2012 Rule 2.2:SUPPRESS]
421421
static const t_u8 rg_rw610_WW[] = {
422-
0x01, 0x00, 0xee, 0x01, 0x06, 0x00, 0x55, 0x53, 0x20, 0x10, 0x00, 0x01, 0x06, 0x02, 0xb2, 0x00, 0x88, 0x88,
423-
0x03, 0x01, 0x0b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x55, 0x53, 0x20, 0x10, 0x03, 0x0a, 0x00, 0x02, 0x08, 0x05,
422+
0x01, 0x00, 0xee, 0x01, 0x06, 0x00, 0x57, 0x57, 0x20, 0x00, 0x00, 0x00, 0x06, 0x02, 0xb2, 0x00, 0x88, 0x88,
423+
0x03, 0x01, 0x0b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x57, 0x57, 0x20, 0x00, 0x03, 0x0a, 0x00, 0x02, 0x08, 0x05,
424424
0x82, 0x80, 0x61, 0x30, 0x58, 0x38, 0x02, 0x0d, 0x00, 0x84, 0xc0, 0x21, 0x10, 0x08, 0x48, 0x0f, 0x0c, 0x08,
425425
0x00, 0x41, 0x80, 0x10, 0x28, 0x04, 0x00, 0x02, 0x86, 0x43, 0xa2, 0x11, 0x28, 0xa4, 0x5a, 0x31, 0x0d, 0x87,
426426
0x80, 0x62, 0x31, 0x38, 0xac, 0x5c, 0x1f, 0x22, 0x85, 0x81, 0xa2, 0x32, 0x79, 0x24, 0x7a, 0x4f, 0x11, 0x08,

0 commit comments

Comments
 (0)