Skip to content

Commit

Permalink
Fix condition in GetPrimaryWiFiMACAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
ATmobica committed Nov 19, 2021
1 parent 924dcf9 commit 66b2eb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/mbed/ConfigurationManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ CHIP_ERROR ConfigurationManagerImpl::Init()
CHIP_ERROR ConfigurationManagerImpl::GetPrimaryWiFiMACAddress(uint8_t * buf)
{
auto net_if = get_mbed_net_if();
if (net_if == nullptr && net_if->wifiInterface() == nullptr)
if (net_if == nullptr || net_if->wifiInterface() == nullptr)
{
ChipLogError(DeviceLayer, "Failed to extract the MAC address: WiFi interface not available");
return CHIP_ERROR_INTERNAL;
Expand Down

0 comments on commit 66b2eb0

Please sign in to comment.