]> git.ipfire.org Git - thirdparty/hostap.git/commit
tests: Make ap_track_sta_no_probe_resp more robust
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 13 Dec 2016 13:47:50 +0000 (15:47 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 13 Dec 2016 18:07:52 +0000 (20:07 +0200)
commita00a3458ed0917a8bf3fae259cc962ed727be8cf
tree74da143fda352ecb8dcf4607c456ef69dc5ab4fa
parente3b38d6e04c8d0dba4fe221a35dddbd03081abfe
tests: Make ap_track_sta_no_probe_resp more robust

Check whether the unexpected BSS entry is based on having received a
Beacon frame instead of Probe Response frame. While this test case is
using a huge beacon_int value, it is still possible for mac80211_hwsim
timing to work in a way that a Beacon frame is sent. That made this test
case fail in some rare cases. Fix this by ignoring the BSS entry if it
is based on Beacon frame instead of Probe Response frame.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
tests/hwsim/test_ap_track.py
tests/hwsim/utils.py