mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 05:23:19 -07:00
fix: wifi.AccessPoint and wifi.Station now export the Channel field via JSON
This commit is contained in:
parent
4ae1ffd171
commit
78c341c2b3
5 changed files with 13 additions and 16 deletions
|
@ -106,7 +106,7 @@ func NewWiFiModule(s *session.Session) *WiFiModule {
|
|||
return err
|
||||
} else if ap, found := mod.Session.WiFi.Get(bssid.String()); found {
|
||||
mod.ap = ap
|
||||
mod.stickChan = ap.Channel()
|
||||
mod.stickChan = ap.Channel
|
||||
return nil
|
||||
}
|
||||
return fmt.Errorf("Could not find station with BSSID %s", args[0])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue