summaryrefslogtreecommitdiff
path: root/bssid.shtml
diff options
context:
space:
mode:
authorChristian Pointner <equinox@ffgraz.net>2013-11-19 01:37:27 +0000
committerChristian Pointner <equinox@ffgraz.net>2013-11-19 01:37:27 +0000
commitcfb6eb374983831ff4738816fb00308d4ebd616c (patch)
tree1cea64d75c95192a0822b0c08a7c4fdaff76dc27 /bssid.shtml
parente734bd335634a707610e08bdbb12230735775c0d (diff)
improved bssid calulation
Diffstat (limited to 'bssid.shtml')
-rw-r--r--bssid.shtml14
1 files changed, 7 insertions, 7 deletions
diff --git a/bssid.shtml b/bssid.shtml
index 672cf8c..a5b87b7 100644
--- a/bssid.shtml
+++ b/bssid.shtml
@@ -1,11 +1,11 @@
-<!--#if expr="$POL == v"-->CA:
-<!--#elif expr="$POL == h"-->CE:
-<!--#elif expr="$POL == l"-->C6:
-<!--#elif expr="$POL == r"-->C2:
+<!--#if expr="$POL == v"--><!--#set var="POLCODED" value="A"-->
+<!--#elif expr="$POL == h"--><!--#set var="POLCODED" value="E"-->
+<!--#elif expr="$POL == l"--><!--#set var="POLCODED" value="6"-->
+<!--#elif expr="$POL == r"--><!--#set var="POLCODED" value="2"-->
<!--#endif-->
-<!--#if expr="($CHAN -ge 1) && ($CHAN -le 14)"-->00:24:00:C0:<!--#if expr="$CHAN = /^[1-9]$/"-->0<!--#endif--><!--#echo var="CHAN"-->
-<!--#elif expr="($CHAN -ge 36) && ($CHAN -lt 100)"-->00:50:00:C0:<!--#echo var="CHAN"-->
-<!--#elif expr="($CHAN -ge 100) && ($CHAN -le 140)"-->00:50:00:C1:<!--#if expr="$CHAN = /^1([1-9]{2})$/"--><!--#echo var="$1"--><!--#endif-->
+<!--#if expr="($CHAN -ge 1) && ($CHAN -le 14)"-->C<!--#echo var="POLCODED"-->:00:24:00:C0:<!--#if expr="$CHAN = /^[1-9]$/"-->0<!--#endif--><!--#echo var="CHAN"-->
+<!--#elif expr="($CHAN -ge 36) && ($CHAN -lt 100)"-->C<!--#echo var="POLCODED"-->:00:50:00:C0:<!--#echo var="CHAN"-->
+<!--#elif expr="($CHAN -ge 100) && ($CHAN -le 140)"-->C<!--#echo var="POLCODED"-->:00:50:00:C1:<!--#if expr="$CHAN = /^1([1-9]{2})$/"--><!--#echo var="$1"--><!--#endif-->
<!--#else-->??:??:??:C?:??
<!--#endif-->