]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: SIGNAL_POLL and PKTCNT_POLL
authorJouni Malinen <j@w1.fi>
Fri, 11 Apr 2014 22:02:19 +0000 (01:02 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 13 Apr 2014 07:26:52 +0000 (10:26 +0300)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ap_psk.py

index 8f871d75f32412d8d1b087c0626de8c182c1a2f2..4d468b247c675601a934064280c0d90fad4c2048 100644 (file)
@@ -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"