]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: IBSS_RSN control interface command
authorJouni Malinen <j@w1.fi>
Sun, 7 Dec 2014 15:57:28 +0000 (17:57 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 8 Dec 2014 09:07:56 +0000 (11:07 +0200)
This verifies that IBSS_RSN <peer> return OK for the case where a valid
and already connection peer address is given.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ibss.py

index cc767073d8b1a0484b83e26466dc8df5a3aa0ef0..fd5c32daee81e11a59a3eba15cacdec714df3b5a 100644 (file)
@@ -128,6 +128,9 @@ def test_ibss_rsn(dev):
     time.sleep(3)
     hwsim_utils.test_connectivity(dev[0], dev[1])
 
+    if "OK" not in dev[0].request("IBSS_RSN " + dev[1].p2p_interface_addr()):
+        raise Exception("IBSS_RSN command failed")
+
 def test_ibss_wpa_none(dev):
     """IBSS WPA-None"""
     ssid="ibss-wpa-none"