tests: Race condition in connect_cmd_concurrent_grpform_while_connecting

Wait for AP to complete connection before running the connectivity test.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
Jouni Malinen 2023-12-12 20:47:16 +02:00 committed by Jouni Malinen
parent 3104d8057e
commit 7629ac4def

View file

@ -119,6 +119,7 @@ def test_connect_cmd_concurrent_grpform_while_connecting(dev, apdev):
wpas.dump_monitor() wpas.dump_monitor()
logger.info("Confirm AP connection after P2P group removal") logger.info("Confirm AP connection after P2P group removal")
hapd.wait_sta()
hwsim_utils.test_connectivity(wpas, hapd) hwsim_utils.test_connectivity(wpas, hapd)
wpas.request("DISCONNECT") wpas.request("DISCONNECT")