tests: More workarounds for cfg80211 regulatory state clearing (ap_open)
Add even more workarounds for cfg80211 regulatory state clearing since these DFS test cases seem to be the most likely ones to fail due to country=98 issues. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
df71e16021
commit
9aac73121b
1 changed files with 2 additions and 9 deletions
|
@ -15,7 +15,7 @@ import os
|
|||
import hostapd
|
||||
import hwsim_utils
|
||||
from tshark import run_tshark
|
||||
from utils import alloc_fail, fail_test, wait_fail_trigger
|
||||
from utils import *
|
||||
from wpasupplicant import WpaSupplicant
|
||||
from test_ap_ht import set_world_reg
|
||||
|
||||
|
@ -770,14 +770,7 @@ def _test_ap_open_country(dev, apdev, country_code, country3):
|
|||
hapd = None
|
||||
hapd = run_ap_open_country(dev, apdev, country_code, country3)
|
||||
finally:
|
||||
if hapd:
|
||||
hapd.request("DISABLE")
|
||||
dev[0].request("DISCONNECT")
|
||||
dev[0].request("ABORT_SCAN")
|
||||
dev[0].wait_event(["CTRL-EVENT-DISCONNECTED"], timeout=0.5)
|
||||
set_world_reg(apdev[0], apdev[1], dev[0])
|
||||
dev[0].wait_event(["CTRL-EVENT-REGDOM-CHANGE"], timeout=0.5)
|
||||
dev[0].flush_scan_cache()
|
||||
clear_regdom(hapd, dev)
|
||||
|
||||
def run_ap_open_country(dev, apdev, country_code, country3):
|
||||
hapd = hostapd.add_ap(apdev[0], { "ssid": "open",
|
||||
|
|
Loading…
Reference in a new issue