mirror of
https://github.com/espressif/openthread.git
synced 2026-07-31 08:07:47 +00:00
[sub-mac] prefer scanning and RX after data poll over CSL RX (#8832)
Signed-off-by: Lukasz Duda <[email protected]>
This commit is contained in:
committed by
Jonathan Hui
parent
1c190a4f6d
commit
59277d0925
@@ -1159,7 +1159,9 @@ void SubMac::HandleCslTimer(void)
|
||||
|
||||
Get<Radio>().UpdateCslSampleTime(mCslSampleTime.GetValue());
|
||||
|
||||
if (RadioSupportsReceiveTiming() && (mState != kStateDisabled))
|
||||
// Scedule reception window for any state except RX - so that CSL RX Window has lower priority
|
||||
// than scanning or RX after the data poll.
|
||||
if (RadioSupportsReceiveTiming() && (mState != kStateDisabled) && (mState != kStateReceive))
|
||||
{
|
||||
IgnoreError(Get<Radio>().ReceiveAt(mCslChannel, mCslSampleTime.GetValue() - periodUs - timeAhead,
|
||||
timeAhead + timeAfter));
|
||||
|
||||
Reference in New Issue
Block a user