mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 13:33:21 -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 {
|
func SetInterfaceChannel(iface string, channel int) error {
|
||||||
out, err := core.Exec(airPortPath, []string{iface, "--channel", fmt.Sprintf("%d", channel)})
|
_, err := core.Exec(airPortPath, []string{iface, "--channel", fmt.Sprintf("%d", channel)})
|
||||||
if err != nil {
|
|
||||||
return err
|
return err
|
||||||
} else if out != "" {
|
|
||||||
return fmt.Errorf("Unexpected output while setting interface %s to channel %d: %s", iface, channel, out)
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//! TODO Get the list of the available frequencies supported by the network card
|
//! TODO Get the list of the available frequencies supported by the network card
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue