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>
This commit is contained in:
parent
99bc57d0d1
commit
b586054f95
9 changed files with 176 additions and 38 deletions
|
@ -382,7 +382,10 @@ def _test_wpas_ap_dfs(dev):
|
|||
raise Exception("AP failed to start")
|
||||
|
||||
dev[1].connect("wpas-ap-dfs", key_mgmt="NONE")
|
||||
dev[1].wait_regdom(country_ie=True)
|
||||
dev[0].request("DISCONNECT")
|
||||
dev[1].request("DISCONNECT")
|
||||
dev[1].request("ABORT_SCAN")
|
||||
dev[1].wait_disconnected()
|
||||
|
||||
@remote_compatible
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue