mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 05:23:19 -07:00
new: new wifi.ap module
This commit is contained in:
parent
8444a783a1
commit
77f8e070bc
7 changed files with 518 additions and 451 deletions
|
@ -27,6 +27,7 @@ func (w *WiFiModule) channelHopper() {
|
|||
defer w.reads.Done()
|
||||
|
||||
log.Info("Channel hopper started.")
|
||||
|
||||
for w.Running() == true {
|
||||
delay := w.hopPeriod
|
||||
// if we have both 2.4 and 5ghz capabilities, we have
|
||||
|
@ -45,6 +46,8 @@ func (w *WiFiModule) channelHopper() {
|
|||
channel = w.stickChan
|
||||
}
|
||||
|
||||
log.Debug("Hopping on channel %d", channel)
|
||||
|
||||
if err := network.SetInterfaceChannel(w.Session.Interface.Name(), channel); err != nil {
|
||||
log.Warning("Error while hopping to channel %d: %s", channel, err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue