tests: Extend fst_ap_ctrl_iface to support existing groups
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
6c247100e8
commit
9162eed42b
1 changed files with 8 additions and 1 deletions
|
@ -1406,6 +1406,13 @@ def test_fst_ap_remove_session_bad_session_id(dev, apdev, test_params):
|
||||||
|
|
||||||
def test_fst_ap_ctrl_iface(dev, apdev, test_params):
|
def test_fst_ap_ctrl_iface(dev, apdev, test_params):
|
||||||
"""FST control interface behavior"""
|
"""FST control interface behavior"""
|
||||||
|
hglobal = hostapd.HostapdGlobal()
|
||||||
|
start_num_groups = 0
|
||||||
|
res = hglobal.request("FST-MANAGER LIST_GROUPS")
|
||||||
|
del hglobal
|
||||||
|
if "FAIL" not in res:
|
||||||
|
start_num_groups = len(res.splitlines())
|
||||||
|
|
||||||
ap1, ap2, sta1, sta2 = fst_module_aux.start_two_ap_sta_pairs(apdev)
|
ap1, ap2, sta1, sta2 = fst_module_aux.start_two_ap_sta_pairs(apdev)
|
||||||
try:
|
try:
|
||||||
fst_module_aux.connect_two_ap_sta_pairs(ap1, ap2, sta1, sta2)
|
fst_module_aux.connect_two_ap_sta_pairs(ap1, ap2, sta1, sta2)
|
||||||
|
@ -1435,7 +1442,7 @@ def test_fst_ap_ctrl_iface(dev, apdev, test_params):
|
||||||
raise Exception("Unexpected number of interfaces")
|
raise Exception("Unexpected number of interfaces")
|
||||||
res = initiator.list_groups()
|
res = initiator.list_groups()
|
||||||
logger.info("Groups: " + str(res))
|
logger.info("Groups: " + str(res))
|
||||||
if len(res) != 1:
|
if len(res) != 1 + start_num_groups:
|
||||||
raise Exception("Unexpected number of groups")
|
raise Exception("Unexpected number of groups")
|
||||||
|
|
||||||
tests = [ "LIST_IFACES unknown",
|
tests = [ "LIST_IFACES unknown",
|
||||||
|
|
Loading…
Add table
Reference in a new issue