From ebf25480bb32b4aa5cea23d7dd5afed9d69e85c1 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 4 Jan 2019 11:44:48 +0200 Subject: [PATCH] tests: Fix P2P-GROUP-STARTED event parsing for persistent groups Do not set the 'ip_addr' value from the "[PERSISTENT]" flag. Signed-off-by: Jouni Malinen --- tests/hwsim/wpasupplicant.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/hwsim/wpasupplicant.py b/tests/hwsim/wpasupplicant.py index 224686c84..3881facb5 100644 --- a/tests/hwsim/wpasupplicant.py +++ b/tests/hwsim/wpasupplicant.py @@ -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]