From: Jouni Malinen Date: Fri, 12 Jun 2015 17:54:01 +0000 (+0300) Subject: tests: P2P GO and 5 GHz channels 165 (allowed) and 169 (disallowed) in US X-Git-Tag: hostap_2_5~654 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee19ba74cdb508377015e3aa57fe2a23a3065b98;p=thirdparty%2Fhostap.git tests: P2P GO and 5 GHz channels 165 (allowed) and 169 (disallowed) in US Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_p2p_channel.py b/tests/hwsim/test_p2p_channel.py index 56bba04f8..db458d3fb 100644 --- a/tests/hwsim/test_p2p_channel.py +++ b/tests/hwsim/test_p2p_channel.py @@ -658,3 +658,18 @@ def test_p2p_channel_5ghz_only(dev): finally: set_country("00") dev[0].request("P2P_SET disallow_freq ") + +def test_p2p_channel_5ghz_165_169_us(dev): + """P2P GO and 5 GHz channels 165 (allowed) and 169 (disallowed) in US""" + try: + set_country("US", dev[0]) + res = dev[0].p2p_start_go(freq=5825) + if res['freq'] != "5825": + raise Exception("Unexpected frequency: " + res['freq']) + dev[0].remove_group() + + res = dev[0].global_request("P2P_GROUP_ADD freq=5845") + if "FAIL" not in res: + raise Exception("GO on channel 169 allowed unexpectedly") + finally: + set_country("00")