]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Ignore old scan results in test_grpform_pbc
authorJouni Malinen <j@w1.fi>
Sat, 2 Nov 2013 09:27:16 +0000 (11:27 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 2 Nov 2013 09:27:16 +0000 (11:27 +0200)
This is needed to avoid invalid PBC session overlap detection when
the previous test case used active PBC mode and the old BSS entry
in cfg80211 may still be valid when starting the next test case.

Signed-hostap: Jouni Malinen <j@w1.fi>

tests/hwsim/test_p2p_grpform.py

index 8df6e33e1d5537dac2388bff0c478e60fbc8cff9..a41b89150871a848f9d4edbf25e89dc18f8daa65 100644 (file)
@@ -144,6 +144,8 @@ def test_grpform3(dev):
 
 def test_grpform_pbc(dev):
     """P2P group formation using PBC and re-init GO Negotiation"""
+    dev[0].request("SET ignore_old_scan_res 1")
+    dev[1].request("SET ignore_old_scan_res 1")
     [i_res, r_res] = go_neg_pbc(i_dev=dev[0], i_intent=15, r_dev=dev[1], r_intent=0)
     check_grpform_results(i_res, r_res)
     if i_res['role'] != 'GO' or r_res['role'] != 'client':