mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -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
|
// method handle both access point and clients
|
||||||
// transparently
|
// transparently
|
||||||
ap, _ := w.Session.WiFi.Get(station.HwAddress)
|
ap, _ := w.Session.WiFi.Get(station.HwAddress)
|
||||||
|
clients := ""
|
||||||
|
if ap.NumClients() > 0 {
|
||||||
|
clients = strconv.Itoa(ap.NumClients())
|
||||||
|
}
|
||||||
|
|
||||||
return []string{
|
return []string{
|
||||||
fmt.Sprintf("%d dBm", station.RSSI),
|
fmt.Sprintf("%d dBm", station.RSSI),
|
||||||
|
@ -170,7 +174,7 @@ func (w *WiFiRecon) getRow(station *network.Station) []string {
|
||||||
station.Vendor,
|
station.Vendor,
|
||||||
encryption,
|
encryption,
|
||||||
strconv.Itoa(mhz2chan(station.Frequency)),
|
strconv.Itoa(mhz2chan(station.Frequency)),
|
||||||
strconv.Itoa(ap.NumClients()),
|
clients,
|
||||||
sent,
|
sent,
|
||||||
recvd,
|
recvd,
|
||||||
seen,
|
seen,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue