]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Extend PMKSA output parser to handle FILS Cache Identifier
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 21 Feb 2017 10:21:15 +0000 (12:21 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 21 Feb 2017 10:51:48 +0000 (12:51 +0200)
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
tests/hwsim/wpasupplicant.py

index 87429b5d56780e634e362f4cc8b498a1eb1dbf1b..c6fabdf38faae8cdb97ab526be84759d8dbbb54f 100644 (file)
@@ -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