tests: Huge number of network blocks and LIST_NETWORKS LAST_ID
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
90903a77ef
commit
8201054da6
1 changed files with 11 additions and 0 deletions
|
@ -199,6 +199,17 @@ def test_wpas_ctrl_network(dev):
|
||||||
if "FAIL" not in dev[0].request('BSSID ' + str(id) + ' 00:11:22:33:44'):
|
if "FAIL" not in dev[0].request('BSSID ' + str(id) + ' 00:11:22:33:44'):
|
||||||
raise Exception("Unexpected BSSID success")
|
raise Exception("Unexpected BSSID success")
|
||||||
|
|
||||||
|
def test_wpas_ctrl_many_networks(dev, apdev):
|
||||||
|
"""wpa_supplicant ctrl_iface LIST_NETWORKS with huge number of networks"""
|
||||||
|
for i in range(1000):
|
||||||
|
id = dev[0].add_network()
|
||||||
|
res = dev[0].request("LIST_NETWORKS")
|
||||||
|
if str(id) in res:
|
||||||
|
raise Exception("Last added network was unexpectedly included")
|
||||||
|
res = dev[0].request("LIST_NETWORKS LAST_ID=%d" % (id - 2))
|
||||||
|
if str(id) not in res:
|
||||||
|
raise Exception("Last added network was not present when using LAST_ID")
|
||||||
|
|
||||||
def test_wpas_ctrl_dup_network(dev, apdev):
|
def test_wpas_ctrl_dup_network(dev, apdev):
|
||||||
"""wpa_supplicant ctrl_iface DUP_NETWORK"""
|
"""wpa_supplicant ctrl_iface DUP_NETWORK"""
|
||||||
ssid = "target"
|
ssid = "target"
|
||||||
|
|
Loading…
Reference in a new issue