mirror of
https://github.com/bettercap/bettercap
synced 2025-07-08 05:51:37 -07:00
fix: fixed a bug which caused AP RSSI being 0 when fake association frames were sent
This commit is contained in:
parent
5315784f8a
commit
c55aed1ca2
1 changed files with 3 additions and 1 deletions
|
@ -136,7 +136,9 @@ func (w *WiFi) AddIfNew(ssid, mac string, frequency int, rssi int8) (*AccessPoin
|
|||
mac = NormalizeMac(mac)
|
||||
if ap, found := w.aps[mac]; found {
|
||||
ap.LastSeen = time.Now()
|
||||
if rssi != 0 {
|
||||
ap.RSSI = rssi
|
||||
}
|
||||
// always get the cleanest one
|
||||
if !isBogusMacESSID(ssid) {
|
||||
ap.Hostname = ssid
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue