Added logic to setup_configuration_data() to support for multi-band combinations

Signed-off-by: tarun-candela <tarunkumar.madabathula@candelatech.com>
This commit is contained in:
tarun-candela
2022-11-24 00:24:26 +05:30
parent 86e5383f89
commit cef8a23315

View File

@@ -165,10 +165,16 @@ class tip_2x:
for i in base_dict: for i in base_dict:
base_dict[i] = [] base_dict[i] = []
for i in requested_combination: for i in requested_combination:
if i[0] in self.supported_bands: if len(i) == 3:
base_dict[i[0]].append(self.tip_2x_specific_encryption_translation[i[1]]) if i[0] in self.supported_bands:
if i[1] in self.supported_bands: base_dict[i[0]].append(self.tip_2x_specific_encryption_translation[i[2]])
base_dict[i[1]].append((self.tip_2x_specific_encryption_translation[i[0]])) 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 = [] temp = []
for i in list(base_dict.values()): for i in list(base_dict.values()):
for j in i: for j in i: