tests: P2P GO negotiation when two peers force different freq
authorAvraham Stern <avraham.stern@intel.com>
Tue, 10 Jun 2014 17:50:41 +0000 (20:50 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 14 Jun 2014 20:12:33 +0000 (23:12 +0300)
Verify that when trying to form a P2P group but each peer forces a
different frequency, the group formation fails.

Signed-off-by: Avraham Stern <avraham.stern@intel.com>
tests/hwsim/test_p2p_channel.py

index 3092294..f8599c2 100644 (file)
@@ -409,3 +409,11 @@ def test_no_go_freq(dev, apdev):
            raise Exception("GO set on a disallowed freq")
     finally:
        dev[0].request("SET p2p_no_go_freq ")
+
+def test_go_neg_peers_force_diff_freq(dev, apdev):
+    try:
+       [i_res2, r_res2] = go_neg_pbc(i_dev=dev[0], i_intent=14, i_freq=5180,
+                                     r_dev=dev[1], r_intent=0, r_freq=5200)
+    except Exception, e:
+        return
+    raise Exception("Unexpected group formation success")