new: wifi modules now supports 5G wifi networks on macOS (closes #361)

This commit is contained in:
evilsocket 2018-10-30 15:24:47 +01:00
commit 260f2863c4
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
2 changed files with 25 additions and 3 deletions

View file

@ -235,6 +235,8 @@ func (w *WiFiModule) Configure() error {
return err
}
log.Debug("wifi supported frequencies: %v", w.frequencies)
// we need to start somewhere, this is just to check if
// this OS supports switching channel programmatically.
if err = network.SetInterfaceChannel(w.Session.Interface.Name(), 1); err != nil {