[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:
Lukasz Duda
2023-03-30 15:02:39 -07:00
committed by Jonathan Hui
parent 1c190a4f6d
commit 59277d0925
+3 -1
View File
@@ -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));