tests: bgscan parameter update

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
Jouni Malinen 2020-10-09 15:48:54 +03:00 committed by Jouni Malinen
parent 41d20df7f3
commit fb0c693d5f

View File

@ -302,3 +302,14 @@ def test_bgscan_unknown_module(dev, apdev):
hapd = hostapd.add_ap(apdev[0], {"ssid": "bgscan"})
dev[0].connect("bgscan", key_mgmt="NONE", scan_freq="2412",
bgscan="unknown:-20:2")
def test_bgscan_reconfig(dev, apdev):
"""bgscan parameter update"""
hostapd.add_ap(apdev[0], {"ssid": "bgscan"})
hostapd.add_ap(apdev[1], {"ssid": "bgscan"})
id = dev[0].connect("bgscan", key_mgmt="NONE", scan_freq="2412",
bgscan="simple:1:-20:2")
dev[0].set_network_quoted(id, "bgscan", "simple:1:-45:2")
dev[0].set_network_quoted(id, "bgscan", "learn:1:-20:2")
dev[0].set_network_quoted(id, "bgscan", "")