UPSTREAM: tests: Make mbo_cell_capa_update_pmf more robust

Wait for hostapd to report completion of connection so that the WNM
Notification Request frame does not get sent before the AP has processed
EAPOL-Key msg 4/4 and configured the TK. This could result in a race
condition especially when testing using UML with time-travel.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
(cherry picked from commit a5ffe45908cae43925bb5cb13d98251c802b4717)
Signed-off-by: Matthew Wang <matthewmwang@chromium.org>

BUG=b:182577507
TEST=test_mbo_cell_capa_update_pmf

Change-Id: I1609bb0ddde8aee498821fc56d6b885a0d6b8d7b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/hostap/+/2758092
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Reviewed-by: Brian Norris <briannorris@chromium.org>
Tested-by: Matthew Wang <matthewmwang@chromium.org>
Commit-Queue: Matthew Wang <matthewmwang@chromium.org>
1 file changed