From: Jouni Malinen Date: Sun, 30 Mar 2014 17:55:56 +0000 (+0300) Subject: tests: Prevent grpform_pbc_overlap_group_iface failures X-Git-Tag: hostap_2_2~408 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d7d7843430ae780eb5313aea5c79a6058536b538;p=thirdparty%2Fhostap.git tests: Prevent grpform_pbc_overlap_group_iface failures 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 --- diff --git a/tests/hwsim/test_p2p_grpform.py b/tests/hwsim/test_p2p_grpform.py index 3bb554ea7..734d090e6 100644 --- a/tests/hwsim/test_p2p_grpform.py +++ b/tests/hwsim/test_p2p_grpform.py @@ -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'])