mirror of
https://github.com/espressif/openthread.git
synced 2026-08-02 09:07:47 +00:00
[csl] update CSL Channel TLV process to allow for unspecified case (#8005)
This commit updates how unspecified CSL channel is conveyed in MLE messages. Special value of zero in CSL Channel TLV is used to indicate that the CSL channel is unspecified. The exclusion of the TLV keeps the CSL channel as before (no change to the previously set CSL channel).
This commit is contained in:
@@ -72,7 +72,6 @@ class SSED_CslTransmission(thread_cert.TestCase):
|
||||
|
||||
ssed_messages = self.simulator.get_messages_sent_by(SSED_1)
|
||||
msg = ssed_messages.next_mle_message(mle.CommandType.CHILD_UPDATE_REQUEST)
|
||||
msg.assertMleMessageDoesNotContainTlv(mle.CslChannel)
|
||||
|
||||
self.nodes[SSED_1].set_csl_channel(consts.CSL_DEFAULT_CHANNEL)
|
||||
self.simulator.go(1)
|
||||
@@ -89,7 +88,6 @@ class SSED_CslTransmission(thread_cert.TestCase):
|
||||
|
||||
ssed_messages = self.simulator.get_messages_sent_by(SSED_1)
|
||||
msg = ssed_messages.next_mle_message(mle.CommandType.CHILD_UPDATE_REQUEST)
|
||||
msg.assertMleMessageDoesNotContainTlv(mle.CslChannel)
|
||||
|
||||
self.nodes[SSED_1].set_csl_period(0)
|
||||
self.assertFalse(self.nodes[LEADER].ping(self.nodes[SSED_1].get_rloc()))
|
||||
|
||||
Reference in New Issue
Block a user