Fixed KeyError wpa2_personal (#785)

Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
This commit is contained in:
jitendracandela
2023-02-24 12:09:26 +05:30
committed by GitHub
parent aefa270425
commit 282eb0f8eb

View File

@@ -167,11 +167,14 @@ class tip_2x:
base_dict = dict.fromkeys(self.supported_bands)
for i in base_dict:
base_dict[i] = []
logging.info("requested_combination: " + str(requested_combination))
for i in requested_combination:
sec_mode = list(set(i) & set(self.tip_2x_specific_encryption_translation))
bands = i.copy()
bands = list(set(bands))
bands.remove(sec_mode[0])
[base_dict[j].append(self.tip_2x_specific_encryption_translation[sec_mode[0]]) for j in bands]
logging.info("Base dict: " + str(base_dict))
# for i in requested_combination:
# if i[0] in self.supported_bands: