From: Jouni Malinen Date: Sat, 24 Dec 2016 23:09:06 +0000 (+0200) Subject: tests: Fix p2p_autogo_pref_chan_not_in_regulatory with new regdb X-Git-Tag: hostap_2_7~1956 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1106833537b6286581532b467a0048075e17e2b0;p=thirdparty%2Fhostap.git tests: Fix p2p_autogo_pref_chan_not_in_regulatory with new regdb 5745 MHz was added as an allowed short range device range in wireless-regdb for DE which made this test case fail. Fix it for now by using SE instead of DE for the second part of the test case. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_p2p_channel.py b/tests/hwsim/test_p2p_channel.py index 011b95665..05dc0dc5f 100644 --- a/tests/hwsim/test_p2p_channel.py +++ b/tests/hwsim/test_p2p_channel.py @@ -538,7 +538,7 @@ def test_p2p_autogo_pref_chan_not_in_regulatory(dev, apdev): raise Exception("Unexpected number of network blocks: " + str(netw)) id = netw[0]['id'] - set_country("DE", dev[0]) + set_country("SE", dev[0]) res = autogo(dev[0], persistent=id) if res['freq'] == "5745": raise Exception("Unexpected channel selected(2): " + res['freq'])