[PATCH 15/24] tests: Fix test_ap_psk() to use own_addr

Ilan Peer ilan.peer
Wed Feb 4 01:30:27 PST 2015


From: Ben <ben.rosenfeld at intel.com>

The test used p2p_dev_addr that can be different from own_addr,
i.e., if a dedicated P2P Device interface is used.

Signed-off-by: Ben Rosenfeld <ben.rosenfeld at intel.com>
---
 tests/hwsim/test_ap_psk.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/hwsim/test_ap_psk.py b/tests/hwsim/test_ap_psk.py
index e0c7c96..966b4e8 100644
--- a/tests/hwsim/test_ap_psk.py
+++ b/tests/hwsim/test_ap_psk.py
@@ -172,9 +172,9 @@ def test_ap_wpa_ccmp(dev, apdev):
 
 def test_ap_wpa2_psk_file(dev, apdev):
     """WPA2-PSK AP with various PSK file error and success cases"""
-    addr0 = dev[0].p2p_dev_addr()
-    addr1 = dev[1].p2p_dev_addr()
-    addr2 = dev[2].p2p_dev_addr()
+    addr0 = dev[0].own_addr()
+    addr1 = dev[1].own_addr()
+    addr2 = dev[2].own_addr()
     ssid = "psk"
     pskfile = "/tmp/ap_wpa2_psk_file_errors.psk_file"
     try:
-- 
1.8.3.2




More information about the Hostap mailing list