]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix P2P-GROUP-STARTED event parsing for persistent groups
authorJouni Malinen <j@w1.fi>
Fri, 4 Jan 2019 09:44:48 +0000 (11:44 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 4 Jan 2019 09:44:48 +0000 (11:44 +0200)
Do not set the 'ip_addr' value from the "[PERSISTENT]" flag.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/wpasupplicant.py

index 224686c8466fc3523d1cf476c2f14a06a250adb4..3881facb522f3eeeac63d42f95f4efe64fef2b44 100644 (file)
@@ -646,7 +646,7 @@ class WpaSupplicant:
             res['passphrase'] = p.group(1)
         res['go_dev_addr'] = s[7]
 
-        if len(s) > 8 and len(s[8]) > 0:
+        if len(s) > 8 and len(s[8]) > 0 and "[PERSISTENT]" not in s[8]:
             res['ip_addr'] = s[8]
         if len(s) > 9:
             res['ip_mask'] = s[9]