]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Validate kernel behavior in wnm_bss_tm_connect_cmd
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 2 May 2017 14:18:50 +0000 (17:18 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 3 May 2017 15:30:31 +0000 (18:30 +0300)
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>
tests/hwsim/test_wnm.py

index f08a0e2ad7572f6ae7e04dbe0bce9b161a46a904..b39f19662e4b2aec695acdea74324b677afe6544 100644 (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)