Skip to content

Commit

Permalink
[EFR32]Added connectivity for RS9116 when AP has WPA3 security mode (#…
Browse files Browse the repository at this point in the history
…21589)

* Added connectivity for RS9116 when AP has WPA3 security mode

* Formatting to get it aligned correctly
  • Loading branch information
chirag-silabs authored Aug 4, 2022
1 parent ce65402 commit 22921b0
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 1 deletion.
7 changes: 7 additions & 0 deletions examples/light-switch-app/efr32/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ declare_args() {

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

# Argument to force enable WPA3 security
wifi_enable_security_wpa3 = false
}

declare_args() {
Expand Down Expand Up @@ -227,6 +230,10 @@ efr32_executable("light_switch_app") {
defines += [ "CHIP_DEVICE_CONFIG_ENABLE_IPV4" ]
}

if (wifi_enable_security_wpa3) {
defines += [ "WIFI_ENABLE_SECURITY_WPA3=1" ]
}

# WiFi Settings
if (chip_enable_wifi) {
if (use_rs911x) {
Expand Down
7 changes: 7 additions & 0 deletions examples/lighting-app/efr32/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ declare_args() {

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

# Argument to force enable WPA3 security
wifi_enable_security_wpa3 = false
}

declare_args() {
Expand Down Expand Up @@ -227,6 +230,10 @@ efr32_executable("lighting_app") {
defines += [ "CHIP_DEVICE_CONFIG_ENABLE_IPV4" ]
}

if (wifi_enable_security_wpa3) {
defines += [ "WIFI_ENABLE_SECURITY_WPA3=1" ]
}

# WiFi Settings
if (chip_enable_wifi) {
if (use_rs911x) {
Expand Down
7 changes: 7 additions & 0 deletions examples/lock-app/efr32/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ declare_args() {

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

# Argument to force enable WPA3 security
wifi_enable_security_wpa3 = false
}

declare_args() {
Expand Down Expand Up @@ -224,6 +227,10 @@ efr32_executable("lock_app") {
defines += [ "CHIP_DEVICE_CONFIG_ENABLE_IPV4" ]
}

if (wifi_enable_security_wpa3) {
defines += [ "WIFI_ENABLE_SECURITY_WPA3=1" ]
}

# WiFi Settings
if (chip_enable_wifi) {
if (use_rs911x) {
Expand Down
7 changes: 7 additions & 0 deletions examples/window-app/efr32/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ declare_args() {

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

# Argument to force enable WPA3 security
wifi_enable_security_wpa3 = false
}

declare_args() {
Expand Down Expand Up @@ -210,6 +213,10 @@ efr32_executable("window_app") {
defines += [ "CHIP_DEVICE_CONFIG_ENABLE_IPV4" ]
}

if (wifi_enable_security_wpa3) {
defines += [ "WIFI_ENABLE_SECURITY_WPA3=1" ]
}

# WiFi Settings
if (chip_enable_wifi) {
if (use_rs911x) {
Expand Down
16 changes: 16 additions & 0 deletions scripts/examples/gn_efr32_example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,22 @@ else
optArgs+="chip_enable_wifi_ipv4=true "
shift
;;
--rs91x_setSecurityType)
if [ -z "$2" ]; then
echo "--rs911x_setSecurityType requires WPA_WPA2 or WPA3_ONLY"
exit 1
fi
if [ "$2" = "WPA_WPA2" ]; then
optArgs+="wifi_enable_security_wpa3=false "
elif [ "$2" = "WPA3_ONLY" ]; then
optArgs+="wifi_enable_security_wpa3=true "
else
echo "Set security usage: --rs911x_setSecurityType WPA_WPA2|WPA3_ONLY"
exit 1
fi
shift
shift
;;
--additional_data_advertising)
optArgs+="chip_enable_additional_data_advertising=true chip_enable_rotating_device_id=true "
shift
Expand Down
2 changes: 1 addition & 1 deletion third_party/silabs/matter_support

0 comments on commit 22921b0

Please sign in to comment.