From cef8a233159f7c9ec8b1c90de70f2d1173b6bd0f Mon Sep 17 00:00:00 2001 From: tarun-candela Date: Thu, 24 Nov 2022 00:24:26 +0530 Subject: [PATCH] Added logic to setup_configuration_data() to support for multi-band combinations Signed-off-by: tarun-candela --- libs/tip_2x/tip_2x.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/libs/tip_2x/tip_2x.py b/libs/tip_2x/tip_2x.py index 3c68e70a7..8f0275ccf 100644 --- a/libs/tip_2x/tip_2x.py +++ b/libs/tip_2x/tip_2x.py @@ -165,10 +165,16 @@ class tip_2x: for i in base_dict: base_dict[i] = [] for i in requested_combination: - if i[0] in self.supported_bands: - base_dict[i[0]].append(self.tip_2x_specific_encryption_translation[i[1]]) - if i[1] in self.supported_bands: - base_dict[i[1]].append((self.tip_2x_specific_encryption_translation[i[0]])) + if len(i) == 3: + if i[0] in self.supported_bands: + base_dict[i[0]].append(self.tip_2x_specific_encryption_translation[i[2]]) + if i[1] in self.supported_bands: + base_dict[i[1]].append((self.tip_2x_specific_encryption_translation[i[2]])) + elif len(i) == 2: + if i[0] in self.supported_bands: + base_dict[i[0]].append(self.tip_2x_specific_encryption_translation[i[1]]) + if i[1] in self.supported_bands: + base_dict[i[1]].append((self.tip_2x_specific_encryption_translation[i[0]])) temp = [] for i in list(base_dict.values()): for j in i: