From: Jouni Malinen Date: Fri, 4 Jan 2019 09:44:48 +0000 (+0200) Subject: tests: Fix P2P-GROUP-STARTED event parsing for persistent groups X-Git-Tag: hostap_2_8~584 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebf25480bb32b4aa5cea23d7dd5afed9d69e85c1;p=thirdparty%2Fhostap.git 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 --- 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]