Browse Source

tests: Ignore old scan results in test_grpform_pbc

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>
Jouni Malinen 11 years ago
parent
commit
d956022c11
1 changed files with 2 additions and 0 deletions
  1. 2 0
      tests/hwsim/test_p2p_grpform.py

+ 2 - 0
tests/hwsim/test_p2p_grpform.py

@@ -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':