From 16dffef1e6c937345e1047c78799a3f337e86de4 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Wed, 14 May 2014 01:29:55 +0300 Subject: [PATCH] tests: Work around grpform_pbc_overlap robustness issues Since P2P Client scan case is now optimzied to use a specific SSID, the WPS AP will not reply to that and the scan after GO Negotiation can quite likely miss the AP due to dwell time being short enoguh to miss the Beaco frame. This has made the test case somewhat pointless, but keep it here for now with an additional scan to confirm that PBC detection works if there is a BSS entry for a overlapping AP. Signed-off-by: Jouni Malinen --- tests/hwsim/test_p2p_grpform.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/hwsim/test_p2p_grpform.py b/tests/hwsim/test_p2p_grpform.py index 2895cb33f..756131ba0 100644 --- a/tests/hwsim/test_p2p_grpform.py +++ b/tests/hwsim/test_p2p_grpform.py @@ -617,6 +617,17 @@ def test_grpform_pbc_overlap(dev, apdev): hapd.request("WPS_PBC") time.sleep(0.1) + # Since P2P Client scan case is now optimzied to use a specific SSID, the + # WPS AP will not reply to that and the scan after GO Negotiation can quite + # likely miss the AP due to dwell time being short enoguh to miss the Beacon + # frame. This has made the test case somewhat pointless, but keep it here + # for now with an additional scan to confirm that PBC detection works if + # there is a BSS entry for a overlapping AP. + for i in range(0, 5): + dev[0].scan(freq="2412") + if dev[0].get_bss(apdev[0]['bssid']) is not None: + break + addr0 = dev[0].p2p_dev_addr() addr1 = dev[1].p2p_dev_addr() dev[0].p2p_listen()