mirror of
https://github.com/espressif/openthread.git
synced 2026-08-21 18:09:52 +00:00
[mac] always emit OT_CHANGED_THREAD_CHANNEL on channel change (#3560)
This commit is contained in:
committed by
Jonathan Hui
parent
f31f8c1f3c
commit
f01e3f34e5
@@ -364,6 +364,7 @@ otError Mac::SetPanChannel(uint8_t aChannel)
|
||||
|
||||
mPanChannel = aChannel;
|
||||
mCcaSuccessRateTracker.Reset();
|
||||
GetNotifier().Signal(OT_CHANGED_THREAD_CHANNEL);
|
||||
|
||||
VerifyOrExit(!mRadioChannelAcquisitionId);
|
||||
|
||||
@@ -371,8 +372,6 @@ otError Mac::SetPanChannel(uint8_t aChannel)
|
||||
|
||||
UpdateIdleMode();
|
||||
|
||||
GetNotifier().Signal(OT_CHANGED_THREAD_CHANNEL);
|
||||
|
||||
exit:
|
||||
return error;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user