misc: wifi.deauth has been optimized by sorting frames to send by channel in order to minimize the amount of channel hops

This commit is contained in:
evilsocket 2018-08-17 14:57:44 +02:00
commit 49beed239f
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
4 changed files with 39 additions and 14 deletions

View file

@ -78,7 +78,7 @@ func (w *WiFiModule) getRow(station *network.Station) ([]string, bool) {
fmt.Sprintf("%d dBm", station.RSSI),
bssid,
/* station.Vendor, */
strconv.Itoa(network.Dot11Freq2Chan(station.Frequency)),
strconv.Itoa(station.Channel()),
sent,
recvd,
seen,
@ -100,7 +100,7 @@ func (w *WiFiModule) getRow(station *network.Station) ([]string, bool) {
ssid,
/* station.Vendor, */
encryption,
strconv.Itoa(network.Dot11Freq2Chan(station.Frequency)),
strconv.Itoa(station.Channel()),
clients,
sent,
recvd,