From 31df6363ab6bb1ffb8299dea03465e1a1e071656 Mon Sep 17 00:00:00 2001 From: hastigondaliya <118960681+hastigondaliya@users.noreply.github.com> Date: Thu, 14 Sep 2023 01:13:29 +0530 Subject: [PATCH] [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. --- src/core/mac/mac.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/mac/mac.cpp b/src/core/mac/mac.cpp index a48ddc93a..aa13d3a96 100644 --- a/src/core/mac/mac.cpp +++ b/src/core/mac/mac.cpp @@ -340,6 +340,10 @@ void Mac::PerformEnergyScan(void) } else { + if (!GetRxOnWhenIdle()) + { + mLinks.Receive(mScanChannel); + } error = mLinks.EnergyScan(mScanChannel, mScanDuration); }