tests: Make autogo_interworking test more robust

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>
This commit is contained in:
Andrei Otcheretianski 2018-08-22 20:31:44 +03:00 committed by Jouni Malinen
parent f13aaf33fb
commit 1d914d01d8

View file

@ -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'])