From de7489240eb24ef856e496b4ac7346943b0c4e7b Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 12 Apr 2014 01:02:19 +0300 Subject: [PATCH] tests: SIGNAL_POLL and PKTCNT_POLL Signed-off-by: Jouni Malinen --- tests/hwsim/test_ap_psk.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/hwsim/test_ap_psk.py b/tests/hwsim/test_ap_psk.py index 8f871d75f..4d468b247 100644 --- a/tests/hwsim/test_ap_psk.py +++ b/tests/hwsim/test_ap_psk.py @@ -31,6 +31,13 @@ def test_ap_wpa2_psk(dev, apdev): dev[0].connect(ssid, raw_psk=psk, scan_freq="2412") dev[1].connect(ssid, psk=passphrase, scan_freq="2412") + sig = dev[0].request("SIGNAL_POLL").splitlines() + pkt = dev[0].request("PKTCNT_POLL").splitlines() + if "FREQUENCY=2412" not in sig: + raise Exception("Unexpected SIGNAL_POLL value: " + str(sig)) + if "TXBAD=0" not in pkt: + raise Exception("Unexpected TXBAD value: " + str(pkt)) + def test_ap_wpa2_psk_file(dev, apdev): """WPA2-PSK AP with PSK from a file""" ssid = "test-wpa2-psk"