aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2016-04-18 21:43:01 (GMT)
committerJouni Malinen <j@w1.fi>2016-04-18 21:43:01 (GMT)
commit4a37c98faecb233d6d49e041c7406fc9396eeb0b (patch)
tree715c09ddc19c0b225c16dcd2733f77cabe85d4cf /tests
parent57b38882e5f6fffa96c3397ba2c2436a872354df (diff)
downloadhostap-4a37c98faecb233d6d49e041c7406fc9396eeb0b.zip
hostap-4a37c98faecb233d6d49e041c7406fc9396eeb0b.tar.gz
hostap-4a37c98faecb233d6d49e041c7406fc9396eeb0b.tar.bz2
tests: P2P_GROUP_MEMBER
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwsim/test_p2p_grpform.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/hwsim/test_p2p_grpform.py b/tests/hwsim/test_p2p_grpform.py
index 5ea010e..8000dbb 100644
--- a/tests/hwsim/test_p2p_grpform.py
+++ b/tests/hwsim/test_p2p_grpform.py
@@ -55,6 +55,15 @@ def test_grpform_b(dev):
if "p2p-wlan" not in r_res['ifname']:
raise Exception("Unexpected group interface name")
check_grpform_results(i_res, r_res)
+ addr = dev[0].group_request("P2P_GROUP_MEMBER " + dev[1].p2p_dev_addr())
+ if "FAIL" in addr:
+ raise Exception("P2P_GROUP_MEMBER failed")
+ if addr != dev[1].p2p_interface_addr():
+ raise Exception("Unexpected P2P_GROUP_MEMBER result: " + addr)
+ if "FAIL" not in dev[0].group_request("P2P_GROUP_MEMBER a"):
+ raise Exception("Invalid P2P_GROUP_MEMBER command accepted")
+ if "FAIL" not in dev[0].group_request("P2P_GROUP_MEMBER 00:11:22:33:44:55"):
+ raise Exception("P2P_GROUP_MEMBER for non-member accepted")
remove_group(dev[0], dev[1])
if r_res['ifname'] in utils.get_ifnames():
raise Exception("Group interface netdev was not removed")