mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
fix: fixed a race condition while doing wifi channel hopping
This commit is contained in:
parent
fa403ad0ec
commit
7f905f4881
2 changed files with 8 additions and 1 deletions
|
@ -36,6 +36,7 @@ type WiFiModule struct {
|
|||
apConfig packets.Dot11ApConfig
|
||||
writes *sync.WaitGroup
|
||||
reads *sync.WaitGroup
|
||||
chanLock *sync.Mutex
|
||||
}
|
||||
|
||||
func NewWiFiModule(s *session.Session) *WiFiModule {
|
||||
|
@ -49,6 +50,7 @@ func NewWiFiModule(s *session.Session) *WiFiModule {
|
|||
apRunning: false,
|
||||
writes: &sync.WaitGroup{},
|
||||
reads: &sync.WaitGroup{},
|
||||
chanLock: &sync.Mutex{},
|
||||
}
|
||||
|
||||
w.AddHandler(session.NewModuleHandler("wifi.recon on", "",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue