Skip to content

Commit

Permalink
Reintroduces CHIP_DEVICE_CONFIG_ENABLE_IPV4 instead of LWIP_IPV4 prep…
Browse files Browse the repository at this point in the history
…rocessor
  • Loading branch information
rosahay-silabs committed Jun 9, 2022
1 parent 95ef889 commit 187d603
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions src/platform/EFR32/CHIPDevicePlatformConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,9 @@
#define CHIP_DEVICE_CONFIG_LOG_PROVISIONING_HASH 0

#define CHIP_DEVICE_CONFIG_MAX_EVENT_QUEUE_SIZE 25

#ifdef RS911X_WIFI
#ifndef CHIP_DEVICE_CONFIG_ENABLE_IPV4
#define CHIP_DEVICE_CONFIG_ENABLE_IPV4 1
#endif /* !CHIP_DEVICE_CONFIG_ENABLE_IPV4 */
#endif /* RS911X_WIFI */
4 changes: 2 additions & 2 deletions src/platform/EFR32/ConnectivityManagerImpl_WIFI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -390,9 +390,9 @@ void ConnectivityManagerImpl::UpdateInternetConnectivityState(void)
// If the WiFi station is currently in the connected state...
if (mWiFiStationState == kWiFiStationState_Connected)
{
#if LWIP_IPV4
#if CHIP_DEVICE_CONFIG_ENABLE_IPV4
haveIPv4Conn = wfx_have_ipv4_addr(SL_WFX_STA_INTERFACE);
#endif /* LWIP_IPV4 */
#endif /* CHIP_DEVICE_CONFIG_ENABLE_IPV4 */
haveIPv6Conn = wfx_have_ipv6_addr(SL_WFX_STA_INTERFACE);
}

Expand Down

0 comments on commit 187d603

Please sign in to comment.