[mac] fix channel switching issue during energy scan (#9405)

- This commit resolves inconsistency between Host and RCP channel on
  scan energy when network not created.
- Added fix in MAC layer to update the channel on scan energy.
This commit is contained in:
hastigondaliya
2023-09-13 12:43:29 -07:00
committed by GitHub
parent 45727d3dc9
commit 31df6363ab
+4
View File
@@ -340,6 +340,10 @@ void Mac::PerformEnergyScan(void)
}
else
{
if (!GetRxOnWhenIdle())
{
mLinks.Receive(mScanChannel);
}
error = mLinks.EnergyScan(mScanChannel, mScanDuration);
}