]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Increase test coverage on BSS command
authorJouni Malinen <j@w1.fi>
Wed, 25 Dec 2013 19:03:47 +0000 (21:03 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 26 Dec 2013 14:55:44 +0000 (16:55 +0200)
Signed-hostap: Jouni Malinen <j@w1.fi>

tests/hwsim/test_p2p_autogo.py

index 04831cb5cd5fc89702a7fbafb927aeb35dd94739..aaa85a68e5c5a82c3067c526b1ad182d91b542a0 100644 (file)
@@ -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()