From 3a64d523facc4dcc595696ccda8b2e9ce96901a8 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Wed, 25 Dec 2013 21:03:47 +0200 Subject: [PATCH] tests: Increase test coverage on BSS command Signed-hostap: Jouni Malinen --- tests/hwsim/test_p2p_autogo.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/hwsim/test_p2p_autogo.py b/tests/hwsim/test_p2p_autogo.py index 04831cb5c..aaa85a68e 100644 --- a/tests/hwsim/test_p2p_autogo.py +++ b/tests/hwsim/test_p2p_autogo.py @@ -38,6 +38,16 @@ def test_autogo(dev): res = connect_cli(dev[0], dev[1]) if "p2p-wlan" in res['ifname']: raise Exception("Unexpected group interface name on client") + bss = dev[1].get_bss("p2p_dev_addr=" + dev[0].p2p_dev_addr()) + if bss['bssid'] != dev[0].p2p_interface_addr(): + raise Exception("Unexpected BSSID in the BSS entry for the GO") + id = bss['id'] + bss = dev[1].get_bss("ID-" + id) + if bss['id'] != id: + raise Exception("Could not find BSS entry based on id") + res = dev[1].request("BSS RANGE=" + id + "- MASK=0x1") + if "id=" + id not in res: + raise Exception("Could not find BSS entry based on id range") dev[0].remove_group() dev[1].wait_go_ending_session()