wifi module: fixes and multiple channel selection

This commit is contained in:
Matrix86 2018-03-12 16:58:02 +01:00
commit 654633c419
6 changed files with 105 additions and 22 deletions

View file

@ -33,10 +33,11 @@ func (w *WiFiModule) channelHopper() {
// more channels, therefore we need to increase the time
// we hop on each one otherwise me lose information
if len(w.frequencies) > 14 {
delay = 500 * time.Millisecond
delay = delay * 2
}
for _, frequency := range w.frequencies {
frequencies := w.frequencies
for _, frequency := range frequencies {
channel := network.Dot11Freq2Chan(frequency)
// stick to the access point channel as long as it's selected
// or as long as we're deauthing on it