]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: AP with open mode and STA statistics
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 8 Apr 2016 15:39:41 +0000 (18:39 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 8 Apr 2016 21:30:49 +0000 (00:30 +0300)
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
tests/hwsim/test_ap_open.py

index 0db8b227a2db4cc9493716f46081d6f9ce146c0c..d23ba2ae2126b1a5eecbfd71dc52dfb43d674805 100644 (file)
@@ -518,3 +518,22 @@ def test_ap_open_reassoc_not_found(dev, apdev):
     if ev is None:
         raise Exception("No result reported")
     dev[0].request("DISCONNECT")
+
+def test_ap_open_sta_statistics(dev, apdev):
+    """AP with open mode and STA statistics"""
+    hapd = hostapd.add_ap(apdev[0], { "ssid": "open" })
+    dev[0].connect("open", key_mgmt="NONE", scan_freq="2412")
+    addr = dev[0].own_addr()
+
+    stats1 = hapd.get_sta(addr)
+    logger.info("stats1: " + str(stats1))
+    time.sleep(0.4)
+    stats2 = hapd.get_sta(addr)
+    logger.info("stats2: " + str(stats2))
+    hwsim_utils.test_connectivity(dev[0], hapd)
+    stats3 = hapd.get_sta(addr)
+    logger.info("stats3: " + str(stats3))
+
+    # Cannot require specific inactive_msec changes without getting rid of all
+    # unrelated traffic, so for now, just print out the results in the log for
+    # manual checks.