tests: Open AP and STA reassociating back without auth exchange
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
de731ec25c
commit
7b111c04d0
1 changed files with 12 additions and 0 deletions
|
@ -790,3 +790,15 @@ def test_ap_open_disable_select(dev, apdev):
|
||||||
raise Exception("Unexpected blacklist entry added")
|
raise Exception("Unexpected blacklist entry added")
|
||||||
dev[0].request("SELECT_NETWORK %d" % id)
|
dev[0].request("SELECT_NETWORK %d" % id)
|
||||||
dev[0].wait_connected()
|
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")
|
||||||
|
|
Loading…
Reference in a new issue