aboutsummaryrefslogtreecommitdiff
path: root/utils.py
diff options
context:
space:
mode:
authorMike Crute <mcrute@gmail.com>2016-08-16 19:35:56 -0700
committerMike Crute <mcrute@gmail.com>2016-08-16 19:35:56 -0700
commitb89f5ffb3730c6813dfc864a8045c6b99635604c (patch)
treec5b6bcdef35c19a164e40e2c9da5dd4e44b7770a /utils.py
parent244e353bb6a788e5f76ed999abf3149704dea754 (diff)
downloadubntmfi-b89f5ffb3730c6813dfc864a8045c6b99635604c.tar.bz2
ubntmfi-b89f5ffb3730c6813dfc864a8045c6b99635604c.tar.xz
ubntmfi-b89f5ffb3730c6813dfc864a8045c6b99635604c.zip
Remove non-core files and cleanup
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"