mirror of
https://github.com/espressif/openthread.git
synced 2026-08-18 08:29:52 +00:00
[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:
@@ -340,6 +340,10 @@ void Mac::PerformEnergyScan(void)
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!GetRxOnWhenIdle())
|
||||
{
|
||||
mLinks.Receive(mScanChannel);
|
||||
}
|
||||
error = mLinks.EnergyScan(mScanChannel, mScanDuration);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user