From 14f97d7309f5ad13a386b9ad90a6d490cd7c961a Mon Sep 17 00:00:00 2001 From: evilsocket Date: Fri, 8 Feb 2019 08:20:52 +0100 Subject: [PATCH] misc: small fix or general refactoring i did not bother commenting --- modules/wifi_assoc.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/modules/wifi_assoc.go b/modules/wifi_assoc.go index f75590cc..4eb1d16f 100644 --- a/modules/wifi_assoc.go +++ b/modules/wifi_assoc.go @@ -14,19 +14,15 @@ import ( func (w *WiFiModule) sendAssocPacket(ap *network.AccessPoint) { if err, pkt := packets.NewDot11Auth(w.Session.Interface.HW, ap.HW, 1); err != nil { log.Error("cloud not create auth packet: %s", err) - // continue } else { w.injectPacket(pkt) } - // for seq := uint16(0); seq < 3 && w.Running(); seq++ { if err, pkt := packets.NewDot11AssociationRequest(w.Session.Interface.HW, ap.HW, ap.ESSID(), 1); err != nil { log.Error("cloud not create association request packet: %s", err) - // continue } else { w.injectPacket(pkt) } - // } } func (w *WiFiModule) skipAssoc(to net.HardwareAddr) bool {