From: Jouni Malinen Date: Tue, 21 Feb 2017 10:21:15 +0000 (+0200) Subject: tests: Extend PMKSA output parser to handle FILS Cache Identifier X-Git-Tag: hostap_2_7~1552 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6bb32582dfc38df825ee49744b4934f733bf397d;p=thirdparty%2Fhostap.git tests: Extend PMKSA output parser to handle FILS Cache Identifier Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/wpasupplicant.py b/tests/hwsim/wpasupplicant.py index 87429b5d5..c6fabdf38 100644 --- a/tests/hwsim/wpasupplicant.py +++ b/tests/hwsim/wpasupplicant.py @@ -1189,11 +1189,17 @@ class WpaSupplicant: if bssid not in l: continue vals = dict() - [index,aa,pmkid,expiration,opportunistic] = l.split(' ') + try: + [index,aa,pmkid,expiration,opportunistic] = l.split(' ') + cache_id = None + except ValueError: + [index,aa,pmkid,expiration,opportunistic,cache_id] = l.split(' ') vals['index'] = index vals['pmkid'] = pmkid vals['expiration'] = expiration vals['opportunistic'] = opportunistic + if cache_id != None: + vals['cache_id'] = cache_id return vals return None