fix: attempting to fix #109

This commit is contained in:
evilsocket 2018-03-06 12:09:32 +01:00
commit 67d0e151ab

View file

@ -33,7 +33,7 @@ func getInterfaceName(iface net.Interface) string {
}
func SetInterfaceChannel(iface string, channel int) error {
_, err := core.Exec(airPortPath, []string{iface, "--channel", fmt.Sprintf("%d", channel)})
_, err := core.Exec(airPortPath, []string{iface, fmt.Sprintf("-c%d", channel)})
return err
}