From 6bb32582dfc38df825ee49744b4934f733bf397d Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 21 Feb 2017 12:21:15 +0200 Subject: [PATCH] tests: Extend PMKSA output parser to handle FILS Cache Identifier Signed-off-by: Jouni Malinen --- tests/hwsim/wpasupplicant.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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