From 0fb1c22d2458a22c87be77f94aa5e2358313e83b Mon Sep 17 00:00:00 2001 From: Zhanglong Xia Date: Thu, 7 Nov 2024 17:24:15 +0800 Subject: [PATCH] [otci] add the parameter wakeup channel to the method create_dataset (#10898) The parameters of the method dataset_set_buffer() has been updated, but the method create_dataset() still use previous defination of dataset_set_buffer(). It causes the crash when calling the method create_dataset(). --- tools/otci/otci/otci.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/otci/otci/otci.py b/tools/otci/otci/otci.py index cef2323ca..af0052475 100644 --- a/tools/otci/otci/otci.py +++ b/tools/otci/otci/otci.py @@ -2723,12 +2723,13 @@ class OTCI(object): panid: Optional[int] = None, pskc: Optional[str] = None, security_policy: Optional[tuple] = None, - pending_timestamp: Optional[int] = None) -> bytes: + pending_timestamp: Optional[int] = None, + wakeup_channel: Optional[int] = None) -> bytes: """Creates a new Operational Dataset with given parameters.""" self.dataset_clear_buffer() self.dataset_init_buffer() - self.dataset_set_buffer(active_timestamp, channel, channel_mask, extpanid, mesh_local_prefix, network_key, - network_name, panid, pskc, security_policy, pending_timestamp) + self.dataset_set_buffer(active_timestamp, channel, wakeup_channel, channel_mask, extpanid, mesh_local_prefix, + network_key, network_name, panid, pskc, security_policy, pending_timestamp) return self.get_dataset_tlvs_bytes() def join(self, dataset: bytes) -> None: