diff options
author | Christian Pointner <equinox@ffgraz.net> | 2013-11-19 01:37:27 +0000 |
---|---|---|
committer | Christian Pointner <equinox@ffgraz.net> | 2013-11-19 01:37:27 +0000 |
commit | cfb6eb374983831ff4738816fb00308d4ebd616c (patch) | |
tree | 1cea64d75c95192a0822b0c08a7c4fdaff76dc27 | |
parent | e734bd335634a707610e08bdbb12230735775c0d (diff) |
improved bssid calulation
-rw-r--r-- | bssid.shtml | 14 | ||||
-rw-r--r-- | essid.shtml | 2 |
2 files changed, 8 insertions, 8 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--> diff --git a/essid.shtml b/essid.shtml index cc460b2..4a5a2cc 100644 --- a/essid.shtml +++ b/essid.shtml @@ -25,7 +25,7 @@ Kanal / channel <!--#echo var="CHAN"--> (<!--#include file="freq.shtml"--> MHz) <p>
SSID: http://graz.funkfeuer.at/<!--#echo var="POL"--><!--#echo var="CHAN"--><br/>
BSSID: <!--#if expr="$CHAN = /^[1-9]$/"-->0<!--#endif--><!--#echo var="CHAN"-->:CA:FF:EE:BA:BE
-oder / ali / or
+<nbsp;><nbsp;>oder / ali / or<nbsp;><nbsp;>
<!--#include file="bssid.shtml"-->
</p>
</div>
|