tests: Fix ap_ht40_5ghz_disabled_sec false negative by using common finalizer

ap_ht40_5ghz_disabled_sec fails with this message.

---------------
wlan0: Country code not reset back to 00: is US
wlan0: Country code cleared back to 00
---------------

This patch fixes the issue.

Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
This commit is contained in:
Masashi Honma 2019-06-25 10:50:46 +09:00 committed by Jouni Malinen
parent b3c8e02966
commit 6e450fbdbe

View file

@ -1288,7 +1288,7 @@ def test_ap_ht40_5ghz_disabled_sec(dev, apdev):
if sec != "0": if sec != "0":
raise Exception("Invalid 40 MHz channel accepted") raise Exception("Invalid 40 MHz channel accepted")
finally: finally:
set_world_reg(apdev[0], None, None) clear_regdom(hapd, dev)
def test_ap_ht40_scan_broken_ap(dev, apdev): def test_ap_ht40_scan_broken_ap(dev, apdev):
"""HT40 co-ex scan and broken legacy/HT AP""" """HT40 co-ex scan and broken legacy/HT AP"""