From: Jouni Malinen Date: Fri, 28 Nov 2014 13:54:08 +0000 (+0200) Subject: tests: Fix p2p_channel_random_social_with_op_class_change cleanup X-Git-Tag: hostap_2_4~989 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ea5e19898f8f8e924407ddbbea40be7ac3d71f5;p=thirdparty%2Fhostap.git tests: Fix p2p_channel_random_social_with_op_class_change cleanup p2p_oper_reg_class and p2p_oper_channel need to be restored to 0, not an arbitrary 2.4 GHz channel to avoid issues for following test cases. For example, p2p_channel_random_social_with_op_class_change followed by p2p_autogo_pref_chan_not_in_regulatory ended up with the latter test case failing. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_p2p_channel.py b/tests/hwsim/test_p2p_channel.py index a2fb6ae67..c8c1d6327 100644 --- a/tests/hwsim/test_p2p_channel.py +++ b/tests/hwsim/test_p2p_channel.py @@ -144,8 +144,8 @@ def test_p2p_channel_random_social_with_op_class_change(dev, apdev, params): finally: set_country("00") dev[0].request("P2P_SET disallow_freq ") - dev[0].request("SET p2p_oper_reg_class 81") - dev[0].request("SET p2p_oper_channel 11") + dev[0].request("SET p2p_oper_reg_class 0") + dev[0].request("SET p2p_oper_channel 0") def test_p2p_channel_avoid(dev): """P2P and avoid frequencies driver event"""