From: Jouni Malinen Date: Thu, 30 Jul 2015 13:03:12 +0000 (+0300) Subject: tests: Support non-social oper channel in persistent_group_per_sta_psk X-Git-Tag: hostap_2_5~254 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72f460a27bb2ff393c59494d373f158feceffdfa;p=thirdparty%2Fhostap.git tests: Support non-social oper channel in persistent_group_per_sta_psk This allows driver-based preference list to override default operating channel selection mechanism by using a non-social P2P find if needed. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_p2p_persistent.py b/tests/hwsim/test_p2p_persistent.py index baf73e20b..2752a8856 100644 --- a/tests/hwsim/test_p2p_persistent.py +++ b/tests/hwsim/test_p2p_persistent.py @@ -184,7 +184,8 @@ def test_persistent_group_per_sta_psk(dev): logger.info("Join another client to the group") pin = dev[2].wps_read_pin() dev[0].p2p_go_authorize_client(pin) - c_res = dev[2].p2p_connect_group(addr0, pin, timeout=60, social=True, + social = int(i_res['freq']) in [ 2412, 2437, 2462 ] + c_res = dev[2].p2p_connect_group(addr0, pin, timeout=60, social=social, freq=i_res['freq']) if not c_res['persistent']: raise Exception("Joining client did not recognize persistent group")