]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: VENDOR_ELEM_REMOVE of the second IE
authorJouni Malinen <j@w1.fi>
Mon, 6 Oct 2014 21:40:52 +0000 (00:40 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 6 Oct 2014 21:43:50 +0000 (00:43 +0300)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_p2p_ext.py

index fcb74a1117383f4e34bee711294d575708de0dcb..8acdfbdff8ea00cb28afa15084b186e6d5355915 100644 (file)
@@ -52,6 +52,15 @@ def test_p2p_ext_discovery(dev):
         peer = dev[1].get_peer(addr0)
         if peer['vendor_elems'] != "dd050011223344dd06001122335566":
             raise Exception("Vendor elements not reported correctly")
+
+        res = dev[0].request("VENDOR_ELEM_GET 1")
+        if res != "dd050011223344dd06001122335566":
+            raise Exception("Unexpected VENDOR_ELEM_GET result(6): " + res)
+        if "OK" not in dev[0].request("VENDOR_ELEM_REMOVE 1 dd06001122335566"):
+            raise Exception("VENDOR_ELEM_REMOVE failed")
+        res = dev[0].request("VENDOR_ELEM_GET 1")
+        if res != "dd050011223344":
+            raise Exception("Unexpected VENDOR_ELEM_GET result(7): " + res)
     finally:
         dev[0].request("VENDOR_ELEM_REMOVE 1 *")