tests: wpa_supplicant AP mode - open network with client isolation
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
19e20c14fb
commit
57dc90e386
1 changed files with 22 additions and 0 deletions
|
@ -78,6 +78,28 @@ def test_wpas_ap_open(dev):
|
|||
dev[1].request("DISCONNECT")
|
||||
dev[2].request("DISCONNECT")
|
||||
|
||||
def test_wpas_ap_open_isolate(dev):
|
||||
"""wpa_supplicant AP mode - open network with client isolation"""
|
||||
try:
|
||||
dev[0].set("ap_isolate", "1")
|
||||
id = dev[0].add_network()
|
||||
dev[0].set_network(id, "mode", "2")
|
||||
dev[0].set_network_quoted(id, "ssid", "wpas-ap-open")
|
||||
dev[0].set_network(id, "key_mgmt", "NONE")
|
||||
dev[0].set_network(id, "frequency", "2412")
|
||||
dev[0].set_network(id, "scan_freq", "2412")
|
||||
dev[0].select_network(id)
|
||||
wait_ap_ready(dev[0])
|
||||
|
||||
dev[1].connect("wpas-ap-open", key_mgmt="NONE", scan_freq="2412")
|
||||
dev[2].connect("wpas-ap-open", key_mgmt="NONE", scan_freq="2412")
|
||||
hwsim_utils.test_connectivity(dev[0], dev[1])
|
||||
hwsim_utils.test_connectivity(dev[0], dev[2])
|
||||
hwsim_utils.test_connectivity(dev[1], dev[2], success_expected=False,
|
||||
timeout=1)
|
||||
finally:
|
||||
dev[0].set("ap_isolate", "0")
|
||||
|
||||
@remote_compatible
|
||||
def test_wpas_ap_wep(dev):
|
||||
"""wpa_supplicant AP mode - WEP"""
|
||||
|
|
Loading…
Reference in a new issue