From 907a9ff62e46d1af29b4e49f14a8c091922e1900 Mon Sep 17 00:00:00 2001 From: Eduardo Montoya Date: Thu, 8 Jul 2021 03:29:07 +0200 Subject: [PATCH] [thci] allow REED DUTs to upgrade (#6789) Some Thread 1.2 tests require that REED DUTs upgrade to Router. Allow it while keeping existent functionality for reference devices. --- tools/harness-thci/OpenThread.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/harness-thci/OpenThread.py b/tools/harness-thci/OpenThread.py index 8901061b6..a5766c0e2 100644 --- a/tools/harness-thci/OpenThread.py +++ b/tools/harness-thci/OpenThread.py @@ -1214,8 +1214,9 @@ class OpenThreadTHCI(object): elif eRoleId == Thread_Device_Role.REED: print('join as REED') mode = 'rdn' - # set ROUTER_UPGRADE_THRESHOLD - self.__setRouterUpgradeThreshold(0) + if self.AutoDUTEnable is False: + # set ROUTER_UPGRADE_THRESHOLD + self.__setRouterUpgradeThreshold(0) elif eRoleId == Thread_Device_Role.EndDevice_FED: print('join as FED') mode = 'rdn'