mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
b48bb8c31c
commit
8720327743
1 changed files with 5 additions and 1 deletions
|
@ -162,6 +162,10 @@ func (w *WiFiRecon) getRow(station *network.Station) []string {
|
|||
// method handle both access point and clients
|
||||
// transparently
|
||||
ap, _ := w.Session.WiFi.Get(station.HwAddress)
|
||||
clients := ""
|
||||
if ap.NumClients() > 0 {
|
||||
clients = strconv.Itoa(ap.NumClients())
|
||||
}
|
||||
|
||||
return []string{
|
||||
fmt.Sprintf("%d dBm", station.RSSI),
|
||||
|
@ -170,7 +174,7 @@ func (w *WiFiRecon) getRow(station *network.Station) []string {
|
|||
station.Vendor,
|
||||
encryption,
|
||||
strconv.Itoa(mhz2chan(station.Frequency)),
|
||||
strconv.Itoa(ap.NumClients()),
|
||||
clients,
|
||||
sent,
|
||||
recvd,
|
||||
seen,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue