mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 08:48:31 -05:00
tests: Fix ap_wpa2_psk_file to use own_addr
The test used p2p_dev_addr() that can be different from own_addr() if a dedicated P2P Device interface is used. Signed-off-by: Ben Rosenfeld <ben.rosenfeld@intel.com>
This commit is contained in:
parent
83e1bab022
commit
18945a8c8e
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user