From: Jouni Malinen Date: Mon, 20 Nov 2017 19:31:36 +0000 (+0200) Subject: tests: Open AP and STA reassociating back without auth exchange X-Git-Tag: hostap_2_7~810 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b111c04d08b4956180ec0ea9bfaa34aaca2f4f3;p=thirdparty%2Fhostap.git tests: Open AP and STA reassociating back without auth exchange Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_ap_open.py b/tests/hwsim/test_ap_open.py index 905acf93a..acc9756d2 100644 --- a/tests/hwsim/test_ap_open.py +++ b/tests/hwsim/test_ap_open.py @@ -790,3 +790,15 @@ def test_ap_open_disable_select(dev, apdev): raise Exception("Unexpected blacklist entry added") dev[0].request("SELECT_NETWORK %d" % id) dev[0].wait_connected() + +def test_ap_open_reassoc_same(dev, apdev): + """AP with open mode and STA reassociating back to same AP without auth exchange""" + hapd = hostapd.add_ap(apdev[0], { "ssid": "open" }) + dev[0].connect("open", key_mgmt="NONE", scan_freq="2412") + try: + dev[0].request("SET reassoc_same_bss_optim 1") + dev[0].request("REATTACH") + dev[0].wait_connected() + hwsim_utils.test_connectivity(dev[0], hapd) + finally: + dev[0].request("SET reassoc_same_bss_optim 0")