diff --git a/examples/platform/linux/AppMain.cpp b/examples/platform/linux/AppMain.cpp index 2e518669b0c883..23552cc9e20d36 100644 --- a/examples/platform/linux/AppMain.cpp +++ b/examples/platform/linux/AppMain.cpp @@ -549,9 +549,9 @@ int ChipLinuxAppInit(int argc, char * const argv[], OptionSet * customOptions, } #endif // CHIP_DEVICE_CONFIG_ENABLE_WPA #if CHIP_DEVICE_CONFIG_ENABLE_WPA && CHIP_DEVICE_CONFIG_ENABLE_WIFIPAF - ChipLogProgress(NotSpecified, "WiFi-PAF: initialzing"); - if (LinuxDeviceOptions::GetInstance().mWiFi) + if (LinuxDeviceOptions::GetInstance().mWiFi && LinuxDeviceOptions::GetInstance().mWiFiPAF) { + ChipLogProgress(NotSpecified, "WiFi-PAF: initialzing"); if (EnsureWiFiIsStarted()) { ChipLogProgress(NotSpecified, "Wi-Fi Management started");