From: Ilan Peer Date: Fri, 6 Feb 2015 01:30:56 +0000 (-0500) Subject: tests: Use global control interface in wpas_ctrl_global X-Git-Tag: hostap_2_4~178 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=75826fc6e6ef97af76e70b965ac5b2b83aca686a;p=thirdparty%2Fhostap.git tests: Use global control interface in wpas_ctrl_global Use the global control interface to set/get the status of the P2P Device. Signed-off-by: Ilan Peer --- diff --git a/tests/hwsim/test_wpas_ctrl.py b/tests/hwsim/test_wpas_ctrl.py index 0730951ea..c3617f638 100644 --- a/tests/hwsim/test_wpas_ctrl.py +++ b/tests/hwsim/test_wpas_ctrl.py @@ -1075,10 +1075,10 @@ def test_wpas_ctrl_global(dev): if "p2p_state=IDLE" not in wpas.global_request("STATUS"): raise Exception("P2P was disabled") - wpas.request("P2P_SET disabled 1") + wpas.global_request("P2P_SET disabled 1") if "p2p_state=DISABLED" not in wpas.global_request("STATUS"): raise Exception("P2P was not disabled") - wpas.request("P2P_SET disabled 0") + wpas.global_request("P2P_SET disabled 0") if "p2p_state=IDLE" not in wpas.global_request("STATUS"): raise Exception("P2P was not enabled")