Browse Source

tests: WMM-AC reassociation-to-same-BSS test

Make sure the tspecs are kept on reassociation to the same BSS.

Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
Eliad Peller 10 years ago
parent
commit
41bf76447b
1 changed files with 15 additions and 0 deletions
  1. 15 0
      tests/hwsim/test_wpas_wmm_ac.py

+ 15 - 0
tests/hwsim/test_wpas_wmm_ac.py

@@ -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")