aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hwsim/test_p2p_channel.py
diff options
context:
space:
mode:
authorMasashi Honma <masashi.honma@gmail.com>2019-06-25 01:51:04 (GMT)
committerJouni Malinen <j@w1.fi>2019-06-26 17:42:20 (GMT)
commite6c82d450e6d036c48e9e9ad2bdc3db6894ceae8 (patch)
treead1dba249ca6b41300b8b20b1c354769bc3596dc /tests/hwsim/test_p2p_channel.py
parentb57d883c2ce9978ba26d06c2ebc447b69728a436 (diff)
downloadhostap-e6c82d450e6d036c48e9e9ad2bdc3db6894ceae8.zip
hostap-e6c82d450e6d036c48e9e9ad2bdc3db6894ceae8.tar.gz
hostap-e6c82d450e6d036c48e9e9ad2bdc3db6894ceae8.tar.bz2
tests: Fix p2p_autogo_pref_chan_not_in_regulatory false negative by using common finalizer
p2p_autogo_pref_chan_not_in_regulatory fails with this message. --------------- wlan0: Country code not reset back to 00: is SE wlan0: Country code cleared back to 00 --------------- This patch fixes the issue. Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
Diffstat (limited to 'tests/hwsim/test_p2p_channel.py')
-rw-r--r--tests/hwsim/test_p2p_channel.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/hwsim/test_p2p_channel.py b/tests/hwsim/test_p2p_channel.py
index 5729566..a1768e4 100644
--- a/tests/hwsim/test_p2p_channel.py
+++ b/tests/hwsim/test_p2p_channel.py
@@ -17,6 +17,7 @@ from tshark import run_tshark
from wpasupplicant import WpaSupplicant
from hwsim import HWSimRadio
from p2p_utils import *
+from utils import clear_regdom_dev
def set_country(country, dev=None):
subprocess.call(['iw', 'reg', 'set', country])
@@ -609,7 +610,7 @@ def test_p2p_autogo_pref_chan_not_in_regulatory(dev, apdev):
dev[0].remove_group(res['ifname'])
finally:
dev[0].global_request("SET p2p_pref_chan ")
- set_country("00")
+ clear_regdom_dev(dev)
def run_autogo(dev, param):
if "OK" not in dev.global_request("P2P_GROUP_ADD " + param):