From: Eliad Peller Date: Mon, 29 Dec 2014 02:15:03 +0000 (-0500) Subject: tests: WMM-AC reassociation-to-same-BSS test X-Git-Tag: hostap_2_4~560 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41bf76447b2fde3172d39b1d67ca007058e030de;p=thirdparty%2Fhostap.git 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 --- 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")