From 282eb0f8eb55c9e8452bb3ed068e237938922c3e Mon Sep 17 00:00:00 2001 From: jitendracandela <78074038+jitendracandela@users.noreply.github.com> Date: Fri, 24 Feb 2023 12:09:26 +0530 Subject: [PATCH] Fixed KeyError wpa2_personal (#785) Signed-off-by: jitendracandela --- libs/tip_2x/tip_2x.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/tip_2x/tip_2x.py b/libs/tip_2x/tip_2x.py index e3cde14e7..37523a076 100644 --- a/libs/tip_2x/tip_2x.py +++ b/libs/tip_2x/tip_2x.py @@ -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: