From 41bf76447b2fde3172d39b1d67ca007058e030de Mon Sep 17 00:00:00 2001 From: Eliad Peller Date: Sun, 28 Dec 2014 21:15:03 -0500 Subject: [PATCH] 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 --- tests/hwsim/test_wpas_wmm_ac.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/hwsim/test_wpas_wmm_ac.py b/tests/hwsim/test_wpas_wmm_ac.py index 1b2daf352..d2d55960a 100644 --- a/tests/hwsim/test_wpas_wmm_ac.py +++ b/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")