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

No stations connected.

{{end}} {{if and (eq .Mode "station") .ScanResults}}
{{range .ScanResults}} {{end}}
SSID BSSID Signal Channel Security
{{if .SSID}}{{.SSID}}{{else}}Hidden{{end}} {{.BSSID}} {{if .Signal}}{{.Signal}}{{else}}—{{end}} {{.Channel}} {{.Encryption}}
{{end}}
{{end}} {{end}} {{else if not .Error}}
WiFi

No WiFi radios detected.

{{end}} {{end}}