[PATCH 13/14] tests: P2P go negotiation when two peers force different freq

Ilan Peer ilan.peer
Tue Jun 10 10:50:41 PDT 2014


From: Avraham Stern <avraham.stern at intel.com>

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 at intel.com>
---
 tests/hwsim/test_p2p_channel.py |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/tests/hwsim/test_p2p_channel.py b/tests/hwsim/test_p2p_channel.py
index 7651f1d..3694f59 100644
--- a/tests/hwsim/test_p2p_channel.py
+++ b/tests/hwsim/test_p2p_channel.py
@@ -426,3 +426,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")
-- 
1.7.10.4




More information about the Hostap mailing list