From a95c6973aa55749ecc336d06fcddb14490f53184 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 16 Dec 2014 23:44:52 +0200 Subject: [PATCH] tests: Use non-promiscuous mode and packet-buffered tcpdump capture This helps in avoiding truncated capture files in the proxyarp_open test case. Signed-off-by: Jouni Malinen --- tests/hwsim/test_ap_hs20.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/tests/hwsim/test_ap_hs20.py b/tests/hwsim/test_ap_hs20.py index d6118630b..175c77bc5 100644 --- a/tests/hwsim/test_ap_hs20.py +++ b/tests/hwsim/test_ap_hs20.py @@ -2776,12 +2776,15 @@ def _test_proxyarp_open(dev, apdev, params): subprocess.call(['ip', 'link', 'set', 'dev', 'ap-br0', 'up']) cmd = {} - cmd[0] = subprocess.Popen(['tcpdump', '-i', 'ap-br0', '-w', cap_br, - '-s', '2000'], stderr=open('/dev/null', 'w')) - cmd[1] = subprocess.Popen(['tcpdump', '-i', dev[0].ifname, '-w', cap_dev0, - '-s', '2000'], stderr=open('/dev/null', 'w')) - cmd[2] = subprocess.Popen(['tcpdump', '-i', dev[1].ifname, '-w', cap_dev1, - '-s', '2000'], stderr=open('/dev/null', 'w')) + cmd[0] = subprocess.Popen(['tcpdump', '-p', '-U', '-i', 'ap-br0', + '-w', cap_br, '-s', '2000'], + stderr=open('/dev/null', 'w')) + cmd[1] = subprocess.Popen(['tcpdump', '-p', '-U', '-i', dev[0].ifname, + '-w', cap_dev0, '-s', '2000'], + stderr=open('/dev/null', 'w')) + cmd[2] = subprocess.Popen(['tcpdump', '-p', '-U', '-i', dev[1].ifname, + '-w', cap_dev1, '-s', '2000'], + stderr=open('/dev/null', 'w')) dev[0].connect("open", key_mgmt="NONE", scan_freq="2412") dev[1].connect("open", key_mgmt="NONE", scan_freq="2412")