]> git.ipfire.org Git - thirdparty/hostap.git/commit - tests/hwsim/test_wnm.py
tests: Be more careful in clearing REGDOM state
authorJouni Malinen <jouni@codeaurora.org>
Thu, 20 Dec 2018 22:55:31 +0000 (00:55 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 20 Dec 2018 22:55:31 +0000 (00:55 +0200)
commit3a259f073af31d391d09e49ed800825ce7f6f1bd
treee91429d42a998162a114f659769813f4853c1f09
parent432c0972ad6336ab1b759b6c6dca6a66d3841aef
tests: Be more careful in clearing REGDOM state

cfg80211 regulatory code gets into pretty inconvenient state if it needs
to intersect regulatory domain information from multiple regulations
(country=98). The existing mechanisms in the hwsim test cases are not
able to clear that up for the following test case and this can result in
large number of failures.

It looks like country=98 case is hit frequently in WNM test cases where
a station associates with an AP that advertises a specific country code
and that station is then asked to disconnect before the REGDOM events
have been received. Avoid this by waiting for the REGDOM events for the
init=COUNTRY_IE case before disconnecting.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
tests/hwsim/test_wnm.py