mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-17 17:43:06 -05:00
tests: Fix prefer_vht40 false negative by using common finalizer
prefer_vht40 fails with this message. --------------- wlan0: Country code not reset back to 00: is FI 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
fec2aea7b3
commit
77e16aacde
@ -962,10 +962,9 @@ def test_prefer_vht40(dev, apdev):
|
|||||||
raise Exception("Unexpected BSS1 est_throughput: " + est)
|
raise Exception("Unexpected BSS1 est_throughput: " + est)
|
||||||
finally:
|
finally:
|
||||||
dev[0].request("DISCONNECT")
|
dev[0].request("DISCONNECT")
|
||||||
if hapd2:
|
disable_hapd(hapd)
|
||||||
hapd2.request("DISABLE")
|
disable_hapd(hapd2)
|
||||||
subprocess.call(['iw', 'reg', 'set', '00'])
|
clear_regdom_dev(dev)
|
||||||
dev[0].flush_scan_cache()
|
|
||||||
|
|
||||||
def test_ap_vht80_pwr_constraint(dev, apdev):
|
def test_ap_vht80_pwr_constraint(dev, apdev):
|
||||||
"""VHT with 80 MHz channel width and local power constraint"""
|
"""VHT with 80 MHz channel width and local power constraint"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user