tests: Use get_bss() with ifname in autogo

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
This commit is contained in:
Ilan Peer 2015-02-04 04:30:25 -05:00 committed by Jouni Malinen
parent fb9cf82eb3
commit 36f2818784

View file

@ -41,14 +41,14 @@ def test_autogo(dev):
res = connect_cli(dev[0], dev[1]) res = connect_cli(dev[0], dev[1])
if "p2p-wlan" in res['ifname']: if "p2p-wlan" in res['ifname']:
raise Exception("Unexpected group interface name on client") raise Exception("Unexpected group interface name on client")
bss = dev[1].get_bss("p2p_dev_addr=" + addr0) bss = dev[1].get_bss("p2p_dev_addr=" + addr0, res['ifname'])
if bss['bssid'] != dev[0].p2p_interface_addr(): if not bss or bss['bssid'] != dev[0].p2p_interface_addr():
raise Exception("Unexpected BSSID in the BSS entry for the GO") raise Exception("Unexpected BSSID in the BSS entry for the GO")
id = bss['id'] id = bss['id']
bss = dev[1].get_bss("ID-" + id) bss = dev[1].get_bss("ID-" + id, res['ifname'])
if bss['id'] != id: if not bss or bss['id'] != id:
raise Exception("Could not find BSS entry based on id") raise Exception("Could not find BSS entry based on id")
res = dev[1].request("BSS RANGE=" + id + "- MASK=0x1") res = dev[1].group_request("BSS RANGE=" + id + "- MASK=0x1")
if "id=" + id not in res: if "id=" + id not in res:
raise Exception("Could not find BSS entry based on id range") raise Exception("Could not find BSS entry based on id range")