mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-26 13:49:35 -05:00
tests: Fix ap_ht40_5ghz_invalid_pair false negative by using common finalizer
ap_ht40_5ghz_invalid_pair 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:
parent
4f89533054
commit
b3c8e02966
@ -12,7 +12,7 @@ import struct
|
|||||||
|
|
||||||
import hostapd
|
import hostapd
|
||||||
from wpasupplicant import WpaSupplicant
|
from wpasupplicant import WpaSupplicant
|
||||||
from utils import HwsimSkip, alloc_fail, parse_ie
|
from utils import HwsimSkip, alloc_fail, parse_ie, clear_regdom
|
||||||
import hwsim_utils
|
import hwsim_utils
|
||||||
from test_ap_csa import csa_supported
|
from test_ap_csa import csa_supported
|
||||||
|
|
||||||
@ -1267,7 +1267,7 @@ def test_ap_ht40_5ghz_invalid_pair(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)
|
||||||
|
|
||||||
@remote_compatible
|
@remote_compatible
|
||||||
def test_ap_ht40_5ghz_disabled_sec(dev, apdev):
|
def test_ap_ht40_5ghz_disabled_sec(dev, apdev):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user