fix: wifi.AccessPoint and wifi.Station now export the Channel field via JSON

This commit is contained in:
evilsocket 2019-02-24 20:12:41 +01:00
commit 78c341c2b3
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
5 changed files with 13 additions and 16 deletions

View file

@ -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])