fix: wifi.AccessPoint and wifi.Station now export the Channel field via JSON

This commit is contained in:
evilsocket 2019-02-24 20:12:41 +01:00
commit 78c341c2b3
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
5 changed files with 13 additions and 16 deletions

View file

@ -86,7 +86,7 @@ func (mod *WiFiModule) getRow(station *network.Station) ([]string, bool) {
rssi,
bssid,
tui.Dim(station.Vendor),
strconv.Itoa(station.Channel()),
strconv.Itoa(station.Channel),
sent,
recvd,
seen,
@ -95,7 +95,7 @@ func (mod *WiFiModule) getRow(station *network.Station) ([]string, bool) {
return []string{
rssi,
bssid,
strconv.Itoa(station.Channel()),
strconv.Itoa(station.Channel),
sent,
recvd,
seen,
@ -137,7 +137,7 @@ func (mod *WiFiModule) getRow(station *network.Station) ([]string, bool) {
ssid,
encryption,
wps,
strconv.Itoa(station.Channel()),
strconv.Itoa(station.Channel),
clients,
sent,
recvd,
@ -150,7 +150,7 @@ func (mod *WiFiModule) getRow(station *network.Station) ([]string, bool) {
ssid,
encryption,
wps,
strconv.Itoa(station.Channel()),
strconv.Itoa(station.Channel),
clients,
sent,
recvd,