tests: Make autogo_interworking test more robust

Message ID 1534959105-13163-2-git-send-email-andrei.otcheretianski@intel.com
State New
Headers show
Series
  • tests: Make autogo_interworking test more robust
Related show

Commit Message

Otcheretianski, Andrei Aug. 22, 2018, 5:31 p.m.
P2P related configuration should be done on a global control interface.
This way this test can be reused also when a dedicated P2P device
interface is used.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
---
 tests/hwsim/test_p2p_autogo.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

Patch

diff --git a/tests/hwsim/test_p2p_autogo.py b/tests/hwsim/test_p2p_autogo.py
index d901933..2a7969a 100644
--- a/tests/hwsim/test_p2p_autogo.py
+++ b/tests/hwsim/test_p2p_autogo.py
@@ -887,11 +887,11 @@  def test_autogo_interworking(dev):
         dev[0].set("go_interworking", "0")
 
 def run_autogo_interworking(dev):
-    dev[0].set("go_interworking", "1")
-    dev[0].set("go_access_network_type", "1")
-    dev[0].set("go_internet", "1")
-    dev[0].set("go_venue_group", "2")
-    dev[0].set("go_venue_type", "3")
+    dev[0].global_request("SET go_interworking 1")
+    dev[0].global_request("SET go_access_network_type 1")
+    dev[0].global_request("SET go_internet 1")
+    dev[0].global_request("SET go_venue_group 2")
+    dev[0].global_request("SET go_venue_type 3")
     res = autogo(dev[0])
     bssid = dev[0].p2p_interface_addr()
     dev[1].scan_for_bss(bssid, freq=res['freq'])