diff --git a/examples/light-switch-app/efr32/BUILD.gn b/examples/light-switch-app/efr32/BUILD.gn index bae931e42345fb..07bcfe6c204e7f 100644 --- a/examples/light-switch-app/efr32/BUILD.gn +++ b/examples/light-switch-app/efr32/BUILD.gn @@ -62,7 +62,7 @@ declare_args() { disable_lcd = false # Argument to Disable IPv4 for wifi(rs911) - chip_enable_wifi_ipv4 = true + chip_enable_wifi_ipv4 = false # Argument to force enable WPA3 security rs91x_wpa3_only = false diff --git a/examples/lighting-app/efr32/BUILD.gn b/examples/lighting-app/efr32/BUILD.gn index 30c6ea7a441b58..4db2f6a8f1afeb 100644 --- a/examples/lighting-app/efr32/BUILD.gn +++ b/examples/lighting-app/efr32/BUILD.gn @@ -62,7 +62,7 @@ declare_args() { disable_lcd = false # Argument to Disable IPv4 for wifi(rs911) - chip_enable_wifi_ipv4 = true + chip_enable_wifi_ipv4 = false # Argument to force enable WPA3 security on rs91x rs91x_wpa3_only = false diff --git a/examples/lock-app/efr32/BUILD.gn b/examples/lock-app/efr32/BUILD.gn index 813508abdca6b9..52862d739841f1 100644 --- a/examples/lock-app/efr32/BUILD.gn +++ b/examples/lock-app/efr32/BUILD.gn @@ -62,7 +62,7 @@ declare_args() { disable_lcd = false # Argument to Disable IPv4 for wifi(rs911) - chip_enable_wifi_ipv4 = true + chip_enable_wifi_ipv4 = false # Argument to force enable WPA3 security rs91x_wpa3_only = false diff --git a/examples/thermostat/efr32/BUILD.gn b/examples/thermostat/efr32/BUILD.gn index ba09c14ba883a8..2146ef417a0831 100644 --- a/examples/thermostat/efr32/BUILD.gn +++ b/examples/thermostat/efr32/BUILD.gn @@ -62,7 +62,7 @@ declare_args() { disable_lcd = false # Argument to Disable IPv4 for wifi(rs911) - chip_enable_wifi_ipv4 = true + chip_enable_wifi_ipv4 = false } declare_args() { @@ -214,6 +214,10 @@ efr32_executable("thermostat_app") { sources += [ "${examples_plat_dir}/OTAConfig.cpp" ] } + if (chip_enable_wifi_ipv4) { + defines += [ "CHIP_DEVICE_CONFIG_ENABLE_IPV4" ] + } + # WiFi Settings if (chip_enable_wifi) { if (use_rs911x) { @@ -241,10 +245,6 @@ efr32_executable("thermostat_app") { sources += wf200_plat_src include_dirs += wf200_plat_incs } - - if (chip_enable_wifi_ipv4) { - defines += [ "CHIP_DEVICE_CONFIG_ENABLE_IPV4" ] - } } if (!disable_lcd) { diff --git a/examples/window-app/efr32/BUILD.gn b/examples/window-app/efr32/BUILD.gn index ec9c391b86e4e8..08dabc3593696e 100644 --- a/examples/window-app/efr32/BUILD.gn +++ b/examples/window-app/efr32/BUILD.gn @@ -55,7 +55,7 @@ declare_args() { disable_lcd = false # Argument to Disable IPv4 for wifi(rs911) - chip_enable_wifi_ipv4 = true + chip_enable_wifi_ipv4 = false # Argument to force enable WPA3 security rs91x_wpa3_only = false diff --git a/scripts/examples/gn_efr32_example.sh b/scripts/examples/gn_efr32_example.sh index e756377af3250c..2169332984236d 100755 --- a/scripts/examples/gn_efr32_example.sh +++ b/scripts/examples/gn_efr32_example.sh @@ -144,6 +144,10 @@ else optArgs+="enable_sleepy_device=true chip_openthread_ftd=false " shift ;; + --chip_enable_wifi_ipv4) + optArgs+="chip_enable_wifi_ipv4=true " + shift + ;; --additional_data_advertising) optArgs+="chip_enable_additional_data_advertising=true chip_enable_rotating_device_id=true " shift