aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAvraham Stern <avraham.stern@intel.com>2016-04-07 10:32:01 (GMT)
committerJouni Malinen <j@w1.fi>2016-04-24 20:45:19 (GMT)
commitaf93c6145043e2afa302bb32bc168cc15535c40b (patch)
tree0cdb20cd6a0a8b1a4491aefe2eb0d111a00b5fbb /tests
parent5e65346ade64a7e873812c84ba061214bd9a263e (diff)
downloadhostap-af93c6145043e2afa302bb32bc168cc15535c40b.zip
hostap-af93c6145043e2afa302bb32bc168cc15535c40b.tar.gz
hostap-af93c6145043e2afa302bb32bc168cc15535c40b.tar.bz2
tests: Modify use of GET command to support P2P Device interface
Support configurations that use a dedicated P2P Device interface by using the global control interface and specifying the interface name for the GET commands fetching the ip_addr_go parameter. Signed-off-by: Avraham Stern <avraham.stern@intel.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwsim/test_nfc_p2p.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/hwsim/test_nfc_p2p.py b/tests/hwsim/test_nfc_p2p.py
index 3236ce2..4425a06 100644
--- a/tests/hwsim/test_nfc_p2p.py
+++ b/tests/hwsim/test_nfc_p2p.py
@@ -48,7 +48,7 @@ def test_nfc_p2p_go_neg(dev):
def _test_nfc_p2p_go_neg(dev):
set_ip_addr_info(dev[0])
- ip = dev[0].request("GET ip_addr_go")
+ ip = dev[0].p2pdev_request("GET ip_addr_go")
if ip != "192.168.42.1":
raise Exception("Unexpected ip_addr_go returned: " + ip)
dev[0].global_request("SET p2p_go_intent 10")
@@ -99,7 +99,7 @@ def test_nfc_p2p_go_neg_ip_pool_oom(dev):
def _test_nfc_p2p_go_neg_ip_pool_oom(dev):
set_ip_addr_info(dev[0])
- ip = dev[0].request("GET ip_addr_go")
+ ip = dev[0].p2pdev_request("GET ip_addr_go")
if ip != "192.168.42.1":
raise Exception("Unexpected ip_addr_go returned: " + ip)
dev[0].global_request("SET p2p_go_intent 10")