Browse Source

tests: IBSS_RSN control interface command

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>
Jouni Malinen 10 years ago
parent
commit
ed685e43ab
1 changed files with 3 additions and 0 deletions
  1. 3 0
      tests/hwsim/test_ibss.py

+ 3 - 0
tests/hwsim/test_ibss.py

@@ -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"