From: Jouni Malinen Date: Wed, 25 Dec 2013 19:03:47 +0000 (+0200) Subject: tests: Increase test coverage on BSS command X-Git-Tag: hostap_2_1~392 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a64d523facc4dcc595696ccda8b2e9ce96901a8;p=thirdparty%2Fhostap.git tests: Increase test coverage on BSS command Signed-hostap: Jouni Malinen --- 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()