]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Prevent grpform_pbc_overlap_group_iface failures
authorJouni Malinen <j@w1.fi>
Sun, 30 Mar 2014 17:55:56 +0000 (20:55 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 30 Mar 2014 17:57:40 +0000 (20:57 +0300)
Do not report missing PBC overlap detection as an issue in this test
case since the sequence can miss the overlap due to per-SSID scan used
during group formation. In addition, increase AP beaconing frequency to
make it more likely for a Beacon frame to be seen during the optimized
scan.

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

index 3bb554ea78311efc91e01472ee1cddb843e55d7a..734d090e645160edc87e000bf9b9916d667938cb 100644 (file)
@@ -632,7 +632,7 @@ def test_grpform_pbc_overlap_group_iface(dev, apdev):
     # Note: Need to include P2P IE from the AP to get the P2P interface BSS
     # update use this information.
     params = { "ssid": "wps", "eap_server": "1", "wps_state": "1",
-               'manage_p2p': '1' }
+               "beacon_int": "15", 'manage_p2p': '1' }
     hapd = hostapd.add_ap(apdev[0]['ifname'], params)
     hapd.request("WPS_PBC")
 
@@ -657,6 +657,10 @@ def test_grpform_pbc_overlap_group_iface(dev, apdev):
     ev = dev[0].wait_global_event(["WPS-OVERLAP-DETECTED",
                                    "P2P-GROUP-FORMATION-SUCCESS"], timeout=15)
     if ev is None or "WPS-OVERLAP-DETECTED" not in ev:
-        raise Exception("PBC overlap not reported")
+        # Do not report this as failure since the P2P group formation case
+        # using a separate group interface has limited chances of "seeing" the
+        # overlapping AP due to a per-SSID scan and no prior scan operations on
+        # the group interface.
+        logger.info("PBC overlap not reported")
 
     clear_pbc_overlap(dev, apdev[0]['ifname'])