tests: Extend PMKSA output parser to handle FILS Cache Identifier
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
6aea02e579
commit
6bb32582df
1 changed files with 7 additions and 1 deletions
|
@ -1189,11 +1189,17 @@ class WpaSupplicant:
|
||||||
if bssid not in l:
|
if bssid not in l:
|
||||||
continue
|
continue
|
||||||
vals = dict()
|
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['index'] = index
|
||||||
vals['pmkid'] = pmkid
|
vals['pmkid'] = pmkid
|
||||||
vals['expiration'] = expiration
|
vals['expiration'] = expiration
|
||||||
vals['opportunistic'] = opportunistic
|
vals['opportunistic'] = opportunistic
|
||||||
|
if cache_id != None:
|
||||||
|
vals['cache_id'] = cache_id
|
||||||
return vals
|
return vals
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue