mirror of
https://github.com/bettercap/bettercap
synced 2025-08-21 05:53:20 -07:00
fix: fixes macOS wifi.* module bug ( ref #61 )
This commit is contained in:
parent
1728ed63f1
commit
7e3bad9dba
1 changed files with 2 additions and 7 deletions
|
@ -33,13 +33,8 @@ func getInterfaceName(iface net.Interface) string {
|
|||
}
|
||||
|
||||
func SetInterfaceChannel(iface string, channel int) error {
|
||||
out, err := core.Exec(airPortPath, []string{iface, "--channel", fmt.Sprintf("%d", channel)})
|
||||
if err != nil {
|
||||
return err
|
||||
} else if out != "" {
|
||||
return fmt.Errorf("Unexpected output while setting interface %s to channel %d: %s", iface, channel, out)
|
||||
}
|
||||
return nil
|
||||
_, err := core.Exec(airPortPath, []string{iface, "--channel", fmt.Sprintf("%d", channel)})
|
||||
return err
|
||||
}
|
||||
|
||||
//! TODO Get the list of the available frequencies supported by the network card
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue