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>
This commit is contained in:
Eliad Peller 2014-12-28 21:15:03 -05:00 committed by Jouni Malinen
parent bc32f830f4
commit 41bf76447b

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