]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix autogo_ht_vht false negative by using common finalizer
authorMasashi Honma <masashi.honma@gmail.com>
Tue, 25 Jun 2019 01:51:05 +0000 (10:51 +0900)
committerJouni Malinen <j@w1.fi>
Wed, 26 Jun 2019 17:42:20 +0000 (20:42 +0300)
autogo_ht_vht 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>
tests/hwsim/test_p2p_channel.py

index a1768e444a37a26a350d9622331c47672cdddaab..374e7e19fae1d1abfbe91eb44c4ed08614198718 100644 (file)
@@ -649,7 +649,7 @@ def test_autogo_ht_vht(dev):
         set_country("US", dev[0])
         _test_autogo_ht_vht(dev)
     finally:
-        set_country("00")
+        clear_regdom_dev(dev)
 
 def test_p2p_listen_chan_optimize(dev, apdev):
     """P2P listen channel optimization"""