From 3475571d05f5a22b98b2f3aa42d3276a22d4411b Mon Sep 17 00:00:00 2001 From: "Borchev, Denis" Date: Wed, 17 Oct 2018 11:23:27 +0300 Subject: [PATCH] fix TypeError: 'itertools.imap' object has no attribute 'getitem' --- wlan_client_capability.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wlan_client_capability.py b/wlan_client_capability.py index d4745db..3681828 100644 --- a/wlan_client_capability.py +++ b/wlan_client_capability.py @@ -82,9 +82,10 @@ def analyze_frame(assoc_req_frame, silent_mode=False, required_client=''): # covert tag list in to useable format (decimal list of values) dec_array = map(ord, str(dot11_elt_info)) #hex_array = map(hex, dec_array) - + DA = list() + for d in dec_array: DA.append(d) # store each tag list in a common tag dictionary - dot11_elt_dict[dot11_elt_id] = dec_array + dot11_elt_dict[dot11_elt_id] = DA #dec_array # move to next layer - end of while loop dot11_elt = dot11_elt.payload