Skip to content

Commit

Permalink
Channel switching issue in MAC layer occurs when there is no NW forma…
Browse files Browse the repository at this point in the history
…tion (openthread#9394)

- 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
  • Loading branch information
hastigondaliya committed Sep 6, 2023
1 parent c6bece0 commit aebed51
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/mac/mac.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,10 @@ void Mac::PerformEnergyScan(void)
}
else
{
if(!GetRxOnWhenIdle())
{
SuccessOrAssert(Get().Receive(mScanChannel));
}
error = mLinks.EnergyScan(mScanChannel, mScanDuration);
}

Expand Down

0 comments on commit aebed51

Please sign in to comment.