wifi: Fix WifiPhyOperatingChannel::FindFirst when band is not specified

This commit is contained in:
Sébastien Deronne
2023-03-16 22:33:50 +01:00
parent 10855129ca
commit 5853c015fd

View File

@@ -378,7 +378,7 @@ WifiPhyOperatingChannel::FindFirst(uint8_t number,
{
return false;
}
if (channel.band != band)
if (band != WIFI_PHY_BAND_UNSPECIFIED && channel.band != band)
{
return false;
}