]> git.ipfire.org Git - thirdparty/hostap.git/commit
tests: Fix mbo_supp_oper_classes after cfg80211 change
authorJouni Malinen <j@w1.fi>
Fri, 21 Dec 2018 22:55:26 +0000 (00:55 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 22 Dec 2018 14:13:14 +0000 (16:13 +0200)
commit99bc57d0d1b14218d9d4767aa0ea33b2d0120f78
tree8c43fb6f105ca59b3e89fafcd6724c647cc1556d
parent2cef6f6e89391de4e4da7455195843723e31f7a7
tests: Fix mbo_supp_oper_classes after cfg80211 change

The Linux kernel commit 113f3aaa81bd ("cfg80211: Prevent regulatory
restore during STA disconnect in concurrent interfaces") broke the
regulatory clearing attempt in this test case 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_mbo.py
tests/hwsim/wpasupplicant.py