Send the deauth packet multiple times, as there will be no time for a retransmit during deinit

This commit is contained in:
Nonoo 2020-10-28 16:37:08 +01:00
parent d9d1c9522b
commit 0939fe2bb4

View file

@ -332,6 +332,9 @@ func (s *controlStream) deinit() {
if s.gotAuthID && s.common.gotRemoteSID && s.common.conn != nil {
log.Debug("sending deauth")
_ = s.sendPktAuth(0x01)
_ = s.sendPktAuth(0x01)
_ = s.sendPktAuth(0x01)
_ = s.sendPktAuth(0x01)
}
s.common.deinit()