Skip to content

Commit

Permalink
removed ipv4 flag from example build gn files and added in siw917 sdk…
Browse files Browse the repository at this point in the history
… gni file (#25675)
  • Loading branch information
Thirsrin authored and pull[bot] committed Feb 13, 2024
1 parent 1b9a0fd commit 2527554
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 28 deletions.
7 changes: 0 additions & 7 deletions examples/light-switch-app/silabs/SiWx917/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@ declare_args() {
sl_wfx_config_softap = false
sl_wfx_config_scan = true

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

# Argument to force enable WPA3 security
rs91x_wpa3_only = false

Expand Down Expand Up @@ -266,10 +263,6 @@ efr32_executable("light_switch_app") {
include_dirs += wf200_plat_incs
}

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

if (rs91x_wpa3_only) {
# TODO: Change this macro once WF200 support is provided
defines += [ "WIFI_ENABLE_SECURITY_WPA3=1" ]
Expand Down
7 changes: 0 additions & 7 deletions examples/lighting-app/silabs/SiWx917/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@ declare_args() {
sl_wfx_config_softap = false
sl_wfx_config_scan = true

# Argument to Disable IPv4 for wifi
chip_enable_wifi_ipv4 = false

# Argument to force enable WPA3 security on rs91x
rs91x_wpa3_only = false

Expand Down Expand Up @@ -266,10 +263,6 @@ efr32_executable("lighting_app") {
include_dirs += wf200_plat_incs
}

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

if (rs91x_wpa3_only) {
# TODO: Change this macro once WF200 support is provided
defines += [ "WIFI_ENABLE_SECURITY_WPA3=1" ]
Expand Down
7 changes: 0 additions & 7 deletions examples/lock-app/silabs/SiWx917/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@ declare_args() {
sl_wfx_config_softap = false
sl_wfx_config_scan = true

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

# Argument to force enable WPA3 security
rs91x_wpa3_only = false

Expand Down Expand Up @@ -267,10 +264,6 @@ efr32_executable("lock_app") {
include_dirs += wf200_plat_incs
}

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

if (rs91x_wpa3_only) {
# TODO: Change this macro once WF200 support is provided
defines += [ "WIFI_ENABLE_SECURITY_WPA3=1" ]
Expand Down
7 changes: 0 additions & 7 deletions examples/window-app/silabs/SiWx917/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ declare_args() {
sl_wfx_config_softap = false
sl_wfx_config_scan = true

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

# Argument to force enable WPA3 security
rs91x_wpa3_only = false

Expand Down Expand Up @@ -257,10 +254,6 @@ efr32_executable("window_app") {
include_dirs += wf200_plat_incs
}

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

if (rs91x_wpa3_only) {
# TODO: Change this macro once WF200 support is provided
defines += [ "WIFI_ENABLE_SECURITY_WPA3=1" ]
Expand Down
7 changes: 7 additions & 0 deletions third_party/silabs/SiWx917_sdk.gni
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ declare_args() {
use_system_view = false

silabs_log_enabled = true

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

assert(efr32_sdk_root != "", "efr32_sdk_root must be specified")
Expand Down Expand Up @@ -143,6 +146,10 @@ template("efr32_sdk") {

defines += board_defines

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

# Enabling led interface
if (use_wstk_leds) {
defines += [ "ENABLE_WSTK_LEDS" ]
Expand Down

0 comments on commit 2527554

Please sign in to comment.