]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: GET ip_addr_go
authorJouni Malinen <j@w1.fi>
Sun, 15 Mar 2015 19:03:39 +0000 (21:03 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 15 Mar 2015 19:03:39 +0000 (21:03 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_nfc_p2p.py

index fc9d7b9ddf3b3777491a916adcb4732aeef0789c..88f6a57c35e12b9e719d6267835c958d59ee7bd4 100644 (file)
@@ -41,6 +41,9 @@ 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")
+    if ip != "192.168.42.1":
+        raise Exception("Unexpected ip_addr_go returned: " + ip)
     dev[0].global_request("SET p2p_go_intent 10")
     logger.info("Perform NFC connection handover")
     req = dev[0].global_request("NFC_GET_HANDOVER_REQ NDEF P2P-CR").rstrip()