[PATCH 01/14] tests: Fix ap_cipher_tkip_countermeasures_sta() test

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


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

Write the main interface address to the tkip_mic_test debugfs file
to generate Michael MIC failure event (which is different than the
p2p_dev_addr when a dedicated P2P Device interface is used).

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

diff --git a/tests/hwsim/test_ap_ciphers.py b/tests/hwsim/test_ap_ciphers.py
index 9d4e868..f6ff0b3 100644
--- a/tests/hwsim/test_ap_ciphers.py
+++ b/tests/hwsim/test_ap_ciphers.py
@@ -119,7 +119,7 @@ def test_ap_cipher_tkip_countermeasures_sta(dev, apdev):
 
     dev[0].dump_monitor()
     with open(testfile, "w") as f:
-        f.write(dev[0].p2p_dev_addr())
+        f.write(dev[0].own_addr())
     ev = dev[0].wait_event(["CTRL-EVENT-DISCONNECTED"], timeout=1)
     if ev is not None:
         raise Exception("Unexpected disconnection on first Michael MIC failure")
-- 
1.9.1




More information about the Hostap mailing list