Skip to content

Commit

Permalink
Fix a coredump if chip_device_config_enable_wifipaf is set, but --wif…
Browse files Browse the repository at this point in the history
…ipaf is not selected

Signed-off-by: Lo,Chin-Ran <[email protected]>
  • Loading branch information
crlonxp committed Oct 24, 2024
1 parent 33046d4 commit beef6d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/platform/linux/AppMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit beef6d0

Please sign in to comment.