Skip to content

Commit feec059

Browse files
[SL-UP] Optimize region_code setting for wifi apps. (#533)
Co-authored-by: senthilku <[email protected]>
1 parent 4d9b51d commit feec059

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/platform/silabs/wifi/SiWx/WifiInterface.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,13 @@ sl_net_wifi_lwip_context_t wifi_client_context;
110110
#endif // SLI_SI91X_LWIP_HOSTED_NETWORK_STACK
111111
sl_wifi_security_t security = SL_WIFI_SECURITY_UNKNOWN;
112112

113-
// TODO : Temporary work-around for wifi-init failure in 917NCP ACX module board(BRD4357A). Can be removed after
114-
// Wiseconnect fixes region code for all ACX module boards.
115-
#ifdef ACX_MODULE_BOARD
116-
#define REGION_CODE IGNORE_REGION
117-
#else
113+
// The REGION_CODE macro defines the regulatory region for the Wi-Fi device.
114+
// The default value is 'US'. Users can override this macro to specify a different region code.
115+
// The region code must match one of the values defined in the 'sl_wifi_region_code_t' enum,
116+
// which is located in 'wifi-sdk/inc/sl_wifi_constants.h'. Example values include US, EU, JP, etc.
117+
#ifndef REGION_CODE
118118
#define REGION_CODE US
119-
#endif // ACX_MODULE_BOARD
119+
#endif // !def REGION_CODE
120120

121121
const sl_wifi_device_configuration_t config = {
122122
.boot_option = LOAD_NWP_FW,

third_party/silabs/efr32_sdk.gni

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ template("efr32_sdk") {
617617
if (use_SiWx917_module) {
618618
defines += [
619619
"USE_BYPASS_CLOCK=1",
620-
"ACX_MODULE_BOARD=1",
620+
"SL_SI91X_ACX_MODULE=1",
621621
]
622622
}
623623

0 commit comments

Comments
 (0)