diff --git a/src/platform/Linux/PlatformManagerImpl.cpp b/src/platform/Linux/PlatformManagerImpl.cpp index a4b8c432759487..791512ccbc4872 100644 --- a/src/platform/Linux/PlatformManagerImpl.cpp +++ b/src/platform/Linux/PlatformManagerImpl.cpp @@ -117,6 +117,12 @@ void PlatformManagerImpl::WiFIIPChangeListener() continue; } + if (ConnectivityManagerImpl::GetWiFiIfName() == nullptr) + { + ChipLogDetail(DeviceLayer, "No wifi interface name. Ignoring IP update event."); + continue; + } + if (strcmp(name, ConnectivityManagerImpl::GetWiFiIfName()) != 0) { continue;