aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2015-11-26 21:42:30 (GMT)
committerJouni Malinen <j@w1.fi>2015-11-26 21:42:30 (GMT)
commitb25f04d44a9482681afa48959ba9c9caf1cb1f7b (patch)
tree3a815500cdddd0258839aa0971e5be78adf4c22f
parent3960585785f8f73d497bbecb305bd0cf0e603789 (diff)
downloadhostap-b25f04d44a9482681afa48959ba9c9caf1cb1f7b.zip
hostap-b25f04d44a9482681afa48959ba9c9caf1cb1f7b.tar.gz
hostap-b25f04d44a9482681afa48959ba9c9caf1cb1f7b.tar.bz2
tests: Clean up frequency list in scan_dfs
This makes the test log more readable by converting the values to integers and sorting the array. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
-rw-r--r--tests/hwsim/test_scan.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/hwsim/test_scan.py b/tests/hwsim/test_scan.py
index bb96033..ff7e69c 100644
--- a/tests/hwsim/test_scan.py
+++ b/tests/hwsim/test_scan.py
@@ -940,10 +940,11 @@ def _test_scan_dfs(dev, apdev, params):
"wlan.fc.type_subtype == 4", [ "radiotap.channel.freq" ])
if out is not None:
freq = out.splitlines()
+ freq = [int(f) for f in freq]
freq = list(set(freq))
+ freq.sort()
logger.info("Active scan seen on channels: " + str(freq))
- for ff in freq:
- f = int(ff)
+ for f in freq:
if (f >= 5260 and f <= 5320) or (f >= 5500 and f <= 5700):
raise Exception("Active scan on DFS channel: %d" % f)