Skip to content

Commit

Permalink
Added retry Join for RS911x and enabling only IPv6 by default (#20747)
Browse files Browse the repository at this point in the history
  • Loading branch information
chirag-silabs authored Jul 15, 2022
1 parent 0eaa37c commit ae987b0
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 19 deletions.
6 changes: 3 additions & 3 deletions examples/light-switch-app/efr32/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ declare_args() {
disable_lcd = false

# Argument to Disable IPv4 for wifi(rs911)
chip_disable_wifi_ipv4 = false
chip_enable_wifi_ipv4 = false
}

declare_args() {
Expand Down Expand Up @@ -222,8 +222,8 @@ efr32_executable("light_switch_app") {
sources += [ "${examples_plat_dir}/OTAConfig.cpp" ]
}

if (chip_disable_wifi_ipv4) {
defines += [ "WIFI_IPV4_DISABLED" ]
if (chip_enable_wifi_ipv4) {
defines += [ "CHIP_DEVICE_CONFIG_ENABLE_IPV4" ]
}

# WiFi Settings
Expand Down
6 changes: 3 additions & 3 deletions examples/lighting-app/efr32/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ declare_args() {
disable_lcd = false

# Argument to Disable IPv4 for wifi(rs911)
chip_disable_wifi_ipv4 = false
chip_enable_wifi_ipv4 = false
}

declare_args() {
Expand Down Expand Up @@ -217,8 +217,8 @@ efr32_executable("lighting_app") {
sources += [ "${examples_plat_dir}/OTAConfig.cpp" ]
}

if (chip_disable_wifi_ipv4) {
defines += [ "WIFI_IPV4_DISABLED" ]
if (chip_enable_wifi_ipv4) {
defines += [ "CHIP_DEVICE_CONFIG_ENABLE_IPV4" ]
}

# WiFi Settings
Expand Down
6 changes: 3 additions & 3 deletions examples/lock-app/efr32/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ declare_args() {
disable_lcd = false

# Argument to Disable IPv4 for wifi(rs911)
chip_disable_wifi_ipv4 = false
chip_enable_wifi_ipv4 = false
}

declare_args() {
Expand Down Expand Up @@ -219,8 +219,8 @@ efr32_executable("lock_app") {
sources += [ "${examples_plat_dir}/OTAConfig.cpp" ]
}

if (chip_disable_wifi_ipv4) {
defines += [ "WIFI_IPV4_DISABLED" ]
if (chip_enable_wifi_ipv4) {
defines += [ "CHIP_DEVICE_CONFIG_ENABLE_IPV4" ]
}

# WiFi Settings
Expand Down
6 changes: 3 additions & 3 deletions examples/window-app/efr32/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ declare_args() {
disable_lcd = false

# Argument to Disable IPv4 for wifi(rs911)
chip_disable_wifi_ipv4 = false
chip_enable_wifi_ipv4 = false
}

declare_args() {
Expand Down Expand Up @@ -206,8 +206,8 @@ efr32_executable("window_app") {
sources += [ "${examples_plat_dir}/OTAConfig.cpp" ]
}

if (chip_disable_wifi_ipv4) {
defines += [ "WIFI_IPV4_DISABLED" ]
if (chip_enable_wifi_ipv4) {
defines += [ "CHIP_DEVICE_CONFIG_ENABLE_IPV4" ]
}

# WiFi Settings
Expand Down
4 changes: 2 additions & 2 deletions scripts/examples/gn_efr32_example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ else
optArgs+="enable_sleepy_device=true chip_openthread_ftd=false "
shift
;;
--chip_disable_wifi_ipv4)
optArgs+="chip_disable_wifi_ipv4=true "
--chip_enable_wifi_ipv4)
optArgs+="chip_enable_wifi_ipv4=true "
shift
;;
*)
Expand Down
6 changes: 2 additions & 4 deletions src/platform/EFR32/CHIPDevicePlatformConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,9 @@

#if defined(SL_WIFI)

#if defined(WIFI_IPV4_DISABLED)
#ifndef CHIP_DEVICE_CONFIG_ENABLE_IPV4
#define CHIP_DEVICE_CONFIG_ENABLE_IPV4 0
#else /* !WIFI_IPV4_DISABLED */
#define CHIP_DEVICE_CONFIG_ENABLE_IPV4 1
#endif /* WIFI_IPV4_DISABLED */
#endif /* CHIP_DEVICE_CONFIG_ENABLE_IPV4 */

#endif /* SL_WIFI */

Expand Down
2 changes: 1 addition & 1 deletion third_party/silabs/matter_support

0 comments on commit ae987b0

Please sign in to comment.