]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: SET disallow_aps in P2P GO mode
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 5 Dec 2014 14:21:10 +0000 (16:21 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 5 Dec 2014 14:21:10 +0000 (16:21 +0200)
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
tests/hwsim/test_wpas_ctrl.py

index f6fda9d1d7ddb839bd4b0e23920518202dea68b6..bee13470b61526edd3176325b98eae55ce11573a 100644 (file)
@@ -665,6 +665,11 @@ def test_wpas_ctrl_disallow_aps(dev, apdev):
     if ev is not None:
         raise Exception("Unexpected reassociation")
 
+    dev[0].request("DISCONNECT")
+    dev[0].p2p_start_go(freq=2412)
+    if "OK" not in dev[0].request("SET disallow_aps "):
+        raise Exception("Failed to set disallow_aps")
+
 def test_wpas_ctrl_blob(dev):
     """wpa_supplicant ctrl_iface SET blob"""
     if "FAIL" not in dev[0].request("SET blob foo"):