This commit is contained in:
evilsocket 2018-02-21 03:30:09 +01:00
parent 51f563d830
commit a30ff8b359

View file

@ -164,11 +164,12 @@ func (w *WiFiRecon) getRow(station *network.Station) []string {
// this is ugly, but necessary in order to have this // this is ugly, but necessary in order to have this
// method handle both access point and clients // method handle both access point and clients
// transparently // transparently
ap, _ := w.Session.WiFi.Get(station.HwAddress)
clients := "" clients := ""
if ap, found := w.Session.WiFi.Get(station.HwAddress); found == true {
if ap.NumClients() > 0 { if ap.NumClients() > 0 {
clients = strconv.Itoa(ap.NumClients()) clients = strconv.Itoa(ap.NumClients())
} }
}
return []string{ return []string{
fmt.Sprintf("%d dBm", station.RSSI), fmt.Sprintf("%d dBm", station.RSSI),