tests: Validate kernel behavior in wnm_bss_tm_connect_cmd

The cfg80211 connect command extension to allow roaming request from
user space while connect was added to the kernel, so uncomment the
previously commented out TODO item to verify this behavior.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2017-05-02 17:18:50 +03:00 committed by Jouni Malinen
parent f2a04874cf
commit 0ed5e9467f

View File

@ -1662,13 +1662,7 @@ def test_wnm_bss_tm_connect_cmd(dev, apdev):
if ev is None:
raise Exception("No reassociation seen")
if "CTRL-EVENT-DISCONNECTED" in ev:
#TODO: Uncomment this once kernel side changes for Connect command
#reassociation are in upstream.
#raise Exception("Unexpected disconnection reported")
logger.info("Unexpected disconnection reported")
ev = wpas.wait_event(["CTRL-EVENT-CONNECTED"], timeout=10)
if ev is None:
raise Exception("No reassociation seen")
raise Exception("Unexpected disconnection reported")
if apdev[1]['bssid'] not in ev:
raise Exception("Unexpected reassociation target: " + ev)