]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: WMM-AC reassociation-to-same-BSS test
authorEliad Peller <eliad@wizery.com>
Mon, 29 Dec 2014 02:15:03 +0000 (21:15 -0500)
committerJouni Malinen <j@w1.fi>
Sun, 4 Jan 2015 16:59:07 +0000 (18:59 +0200)
Make sure the tspecs are kept on reassociation to the same BSS.

Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
tests/hwsim/test_wpas_wmm_ac.py

index 1b2daf3524f5f7a542a27cd402e3c53ceeddd795..d2d55960a52c560913d7889f390275ee455ccf36 100644 (file)
@@ -263,3 +263,18 @@ def test_tspec_ap_roam_open(dev, apdev):
     dev[0].scan_for_bss(apdev[0]['bssid'], freq=2462)
     dev[0].roam(apdev[0]['bssid'])
     hwsim_utils.test_connectivity(dev[0], hapd0)
+
+def test_tspec_reassoc(dev, apdev):
+    """Reassociation to same BSS while having tspecs"""
+    hapd0 = add_wmm_ap(apdev[0], ["VO", "VI"])
+    dev[0].connect("wmm_ac", key_mgmt="NONE")
+    hwsim_utils.test_connectivity(dev[0], hapd0)
+    dev[0].add_ts(5, 6)
+    last_tspecs = dev[0].tspecs()
+
+    dev[0].request("REASSOCIATE")
+    dev[0].wait_connected()
+
+    hwsim_utils.test_connectivity(dev[0], hapd0)
+    if dev[0].tspecs() != last_tspecs:
+        raise Exception("TSPECs weren't saved on reassociation")