]> git.ipfire.org Git - thirdparty/hostap.git/commit - tests/hwsim/test_wnm.py
tests: Work around cfg80211 reg.c intersection (country 98) issues
authorJouni Malinen <j@w1.fi>
Sat, 22 Dec 2018 13:55:19 +0000 (15:55 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 23 Dec 2018 15:25:11 +0000 (17:25 +0200)
commitb586054f95b21bd718d3ae8fff2c85668807923d
tree27d3f5b52b8805a954e116bfdb66e39216968fe3
parent99bc57d0d1b14218d9d4767aa0ea33b2d0120f78
tests: Work around cfg80211 reg.c intersection (country 98) issues

The Linux kernel commit 113f3aaa81bd ("cfg80211: Prevent regulatory
restore during STA disconnect in concurrent interfaces") broke the
regulatory clearing attempt in many test cases since
cfg80211_is_all_idle() is now returning false due to the AP interface
being up and that results in the Country IE -based regulatory
information not getting cleared back to defaults.

Work around this by stopping the AP interface first so that when the
station interface receives the disconnection, there are no other active
interfaces in the system. In addition, wait for REGDOM event for the
Country IE hint after association to avoid disconnection before the
regulatory events have been fully processed.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ap_acs.py
tests/hwsim/test_ap_open.py
tests/hwsim/test_ap_params.py
tests/hwsim/test_ap_vht.py
tests/hwsim/test_dfs.py
tests/hwsim/test_ocv.py
tests/hwsim/test_rrm.py
tests/hwsim/test_wnm.py
tests/hwsim/test_wpas_ap.py