From 81f1d6b88fcf92a405f71bca9c898fdcf2938836 Mon Sep 17 00:00:00 2001 From: evilsocket Date: Fri, 18 Jan 2019 16:32:37 +0100 Subject: [PATCH] misc: small fix or general refactoring i did not bother commenting --- modules/wifi_deauth.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/wifi_deauth.go b/modules/wifi_deauth.go index 9cb026ac..39b7a2c1 100644 --- a/modules/wifi_deauth.go +++ b/modules/wifi_deauth.go @@ -90,6 +90,9 @@ func (w *WiFiModule) startDeauth(to net.HardwareAddr) error { } if len(toDeauth) == 0 { + if isBcast { + return nil + } return fmt.Errorf("%s is an unknown BSSID, is in the deauth skip list, or doesn't have detected clients.", to.String()) }