aboutsummaryrefslogtreecommitdiff
path: root/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/utils.py b/utils.py
deleted file mode 100644
index 2226108..0000000
--- a/utils.py
+++ /dev/null
@@ -1,16 +0,0 @@
1def decode_station_band(sta):
2 tx = sta["tx_rate"] / 1000
3 rx = sta["rx_rate"] / 1000
4 is_a = sta.get("is_11a", None)
5 is_n = sta.get("is_11n", False)
6
7 if is_n:
8 return "N"
9
10 if is_a:
11 return "A"
12
13 if not is_n and any((rx > 11, rx > 11)):
14 return "G"
15 else:
16 return "B"