{{define "wifi.html"}}
{{template "base" .}}
{{end}}
{{define "content"}}
{{if .Error}}
{{.Error}}
{{end}}
{{if .Radios}}
{{range .Radios}}
{{if .Manufacturer}}| Manufacturer | {{.Manufacturer}} |
{{end}}
{{if .Driver}}| Driver | {{.Driver}} |
{{end}}
{{if .Standards}}| Standards | {{.Standards}} |
{{end}}
{{if .Band}}| Active Band | {{.Band}} |
{{end}}
{{if .Channel}}| Channel | {{.Channel}} |
{{end}}
{{if .Frequency}}| Frequency | {{.Frequency}} MHz |
{{end}}
{{if .Noise}}| Noise Floor | {{.Noise}} dBm |
{{end}}
{{if .MaxAP}}| Max APs | {{.MaxAP}} |
{{end}}
{{if .Bands}}
| Supported Bands |
{{range .Bands}}
{{.Name}}
{{end}}
|
{{end}}
{{if .SurveySVG}}
{{end}}
{{range .Interfaces}}
{{if eq .Mode "station"}}
{{if .Signal}}| Signal | {{.Signal}} |
{{end}}
{{if .RxSpeed}}| RX Speed | {{.RxSpeed}} |
{{end}}
{{if .TxSpeed}}| TX Speed | {{.TxSpeed}} |
{{end}}
{{end}}
{{if and (eq .Mode "ap") .APClients}}
| MAC Address |
Signal |
Connected |
RX Bytes |
TX Bytes |
RX Speed |
TX Speed |
{{range .APClients}}
| {{.MAC}} |
{{if .Signal}}{{.Signal}}{{else}}—{{end}} |
{{.ConnTime}} |
{{.RxBytes}} |
{{.TxBytes}} |
{{.RxSpeed}} |
{{.TxSpeed}} |
{{end}}
{{else if eq .Mode "ap"}}
No stations connected.
{{end}}
{{if and (eq .Mode "station") .ScanResults}}
| SSID |
BSSID |
Signal |
Channel |
Security |
{{range .ScanResults}}
| {{if .SSID}}{{.SSID}}{{else}}Hidden{{end}} |
{{.BSSID}} |
{{if .Signal}}{{.Signal}}{{else}}—{{end}} |
{{.Channel}} |
{{.Encryption}} |
{{end}}
{{end}}
{{end}}
{{end}}
{{else if not .Error}}
{{end}}
{{end}}