[PATCH 11/14] tests: Use the global ctrl interface in nfc_p2p_go_neg()

Ilan Peer ilan.peer
Wed Oct 14 08:43:17 PDT 2015


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

Use the global control interface to get the configured P2P GO IP
address to support configurations that use a dedicated
P2P Device interface.

Signed-off-by: Avraham Stern <avraham.stern at intel.com>
---
 tests/hwsim/test_nfc_p2p.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/hwsim/test_nfc_p2p.py b/tests/hwsim/test_nfc_p2p.py
index 57aafd7..aa79828 100644
--- a/tests/hwsim/test_nfc_p2p.py
+++ b/tests/hwsim/test_nfc_p2p.py
@@ -42,7 +42,7 @@ def check_ip_addr(res):
 def test_nfc_p2p_go_neg(dev):
     """NFC connection handover to form a new P2P group (initiator becomes GO)"""
     set_ip_addr_info(dev[0])
-    ip = dev[0].request("GET ip_addr_go")
+    ip = dev[0].global_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")
-- 
1.9.1




More information about the Hostap mailing list