From d715738578af8e4328dc57fd7340a0299913b3e4 Mon Sep 17 00:00:00 2001 From: Ben Date: Wed, 4 Feb 2015 04:30:32 -0500 Subject: [PATCH] tests: Modify tests in test_ap_pmf to use own_addr() Some of the tests used p2p_dev_addr() that can be different from own_addr() if a dedicated P2P Device interface is used. Signed-off-by: Ben Rosenfeld --- tests/hwsim/test_ap_pmf.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/hwsim/test_ap_pmf.py b/tests/hwsim/test_ap_pmf.py index 6a83e3d95..00ca2298a 100644 --- a/tests/hwsim/test_ap_pmf.py +++ b/tests/hwsim/test_ap_pmf.py @@ -168,7 +168,7 @@ def test_ap_pmf_assoc_comeback2(dev, apdev): def test_ap_pmf_sta_sa_query(dev, apdev): """WPA2-PSK AP with station using SA Query""" ssid = "assoc-comeback" - addr = dev[0].p2p_dev_addr() + addr = dev[0].own_addr() wt = Wlantest() wt.flush() wt.add_passphrase("12345678") @@ -186,7 +186,7 @@ def test_ap_pmf_sta_sa_query(dev, apdev): wpas.set_network(id, "group", "CCMP") wpas.set_network(id, "frequency", "2412") wpas.connect_network(id) - bssid = wpas.p2p_dev_addr() + bssid = wpas.own_addr() dev[0].connect(ssid, psk="12345678", ieee80211w="1", key_mgmt="WPA-PSK WPA-PSK-SHA256", proto="WPA2", @@ -225,7 +225,7 @@ def test_ap_pmf_sta_sa_query_no_response(dev, apdev): wpas.set_network(id, "group", "CCMP") wpas.set_network(id, "frequency", "2412") wpas.connect_network(id) - bssid = wpas.p2p_dev_addr() + bssid = wpas.own_addr() dev[0].connect(ssid, psk="12345678", ieee80211w="1", key_mgmt="WPA-PSK WPA-PSK-SHA256", proto="WPA2", @@ -246,7 +246,7 @@ def test_ap_pmf_sta_sa_query_no_response(dev, apdev): def test_ap_pmf_sta_unprot_deauth_burst(dev, apdev): """WPA2-PSK AP with station receiving burst of unprotected Deauthentication frames""" ssid = "deauth-attack" - addr = dev[0].p2p_dev_addr() + addr = dev[0].own_addr() wt = Wlantest() wt.flush() wt.add_passphrase("12345678")