[PATCH] tests: Set country_code=US in run_ap_vht160_no_dfs()

Chen Rong chenr.fnst at cn.fujitsu.com
Tue Jul 18 00:55:20 PDT 2017


ap_vht160_no_dfs need no DFS, but ZA regulatory rule
did not have DFS requirement removed.

Signed-off-by: Chen Rong <chenr.fnst at cn.fujitsu.com>
---
 tests/hwsim/test_ap_vht.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/hwsim/test_ap_vht.py b/tests/hwsim/test_ap_vht.py
index f631750..d20e4fb 100644
--- a/tests/hwsim/test_ap_vht.py
+++ b/tests/hwsim/test_ap_vht.py
@@ -450,7 +450,7 @@ def run_ap_vht160_no_dfs(dev, apdev, channel, ht_capab):
     try:
         hapd = None
         params = { "ssid": "vht",
-                   "country_code": "ZA",
+                   "country_code": "US",
                    "hw_mode": "a",
                    "channel": channel,
                    "ht_capab": ht_capab,
@@ -467,7 +467,7 @@ def run_ap_vht160_no_dfs(dev, apdev, channel, ht_capab):
             reg = cmd.stdout.readlines()
             for r in reg:
                 if "5490" in r and "DFS" in r:
-                    raise HwsimSkip("ZA regulatory rule did not have DFS requirement removed")
+                    raise HwsimSkip("US regulatory rule did not have DFS requirement removed")
             raise Exception("AP setup timed out")
 
         freq = str(int(channel) * 5 + 5000)
-- 
2.9.4






More information about the Hostap mailing list