From cc259e2650b7a7d709ec2a2613607e07eb1561ab Mon Sep 17 00:00:00 2001 From: Ben Rosenfeld Date: Tue, 5 May 2015 12:37:01 +0300 Subject: [PATCH] tests: Change p2p_device_misuses() to use group interface Calling "DISASSOCIATE" should be done on the group interface. Signed-off-by: Ben Rosenfeld --- tests/hwsim/test_p2p_device.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/hwsim/test_p2p_device.py b/tests/hwsim/test_p2p_device.py index a36eb38b1..cc4edca0b 100644 --- a/tests/hwsim/test_p2p_device.py +++ b/tests/hwsim/test_p2p_device.py @@ -150,7 +150,7 @@ def test_p2p_device_misuses(dev, apdev): # Optimize scan-after-disconnect wpas.group_request("SET_NETWORK 0 scan_freq 2412") - dev[0].request("DISASSOCIATE " + wpas.p2p_interface_addr()) + dev[0].group_request("DISASSOCIATE " + wpas.p2p_interface_addr()) ev = wpas.wait_group_event(["CTRL-EVENT-DISCONNECT"]) if ev is None: raise Exception("Did not see disconnect event on P2P group interface")