]> git.ipfire.org Git - thirdparty/hostap.git/commit
tests: Fix bgscan_learn_beacon_loss with REPORTS_TX_ACK_STATUS
authorJouni Malinen <j@w1.fi>
Sun, 22 Mar 2020 17:52:38 +0000 (19:52 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 22 Mar 2020 17:52:38 +0000 (19:52 +0200)
commit9efac010204a2de2d0174369e005b25706f03fa9
tree1651c1181c0c585c17fb90f9c84cc157d3512a2f
parentb967b5e859149d53cb32bc0b37a6ef60a8b1f554
tests: Fix bgscan_learn_beacon_loss with REPORTS_TX_ACK_STATUS

Stopping the AP from beaconing will also stop it from acknowledging
frames and that resulted in bgscan_learn_beacon_loss failing when
mac80211_hwsim is registering REPORTS_TX_ACK_STATUS. Work around this by
moving to using PMF so that the station ignores the unprotected
deauthentiation frames from the AP and also disabling SA Query. This
allows the AP to be stopped and restarted with large enough Beacon
interval to allow the station to detect beacon loss.

This is identical to the earlier design change for
bgscan_simple_beacon_loss (somehow this bgscan_learn_beacon_loss test
case managed to pass at that time).

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_bgscan.py