[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:
Abtin Keshavarzian
2022-08-10 15:00:48 -07:00
committed by GitHub
parent 967d89cd1a
commit 82ce9dd4c4
3 changed files with 6 additions and 17 deletions
@@ -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()))