mirror of
https://github.com/espressif/openthread.git
synced 2026-07-30 07:37:46 +00:00
[mac] force rx_on_when_idle to true during active scan (#12147)
This commit forces mLinks.SetRxOnWhenIdle to true when performing an active scan. Previously, when we have an SED which is connected to a thread network (i.e. state == child), it is unable to perform scan command because rx is turned off.
This commit is contained in:
@@ -293,10 +293,12 @@ void Mac::PerformActiveScan(void)
|
||||
if (UpdateScanChannel() == kErrorNone)
|
||||
{
|
||||
// If there are more channels to scan, send the beacon request.
|
||||
mLinks.SetRxOnWhenIdle(true);
|
||||
BeginTransmit();
|
||||
}
|
||||
else
|
||||
{
|
||||
mLinks.SetRxOnWhenIdle(mRxOnWhenIdle);
|
||||
mLinks.SetPanId(mPanId);
|
||||
FinishOperation();
|
||||
ReportActiveScanResult(nullptr);
|
||||
|
||||
Reference in New Issue
Block a user