Issue #157: wifi.recon can now select one or multiple channels (comma separated) and show only the selected channels.

This commit is contained in:
Matrix86 2018-03-12 14:09:09 +01:00
commit 054ce2a1bf
3 changed files with 99 additions and 19 deletions

View file

@ -66,6 +66,23 @@ func Dot11ParseIDSSID(packet gopacket.Packet) (bool, string) {
return false, ""
}
func Dot11ParseDSSet(packet gopacket.Packet) (bool, int) {
channel := 0
found := false
for _, layer := range packet.Layers() {
info, ok := layer.(*layers.Dot11InformationElement)
if ok == true {
if info.ID == layers.Dot11InformationElementIDDSSet {
channel, _ = Dot11InformationElementIDDSSetDecode(info.Info)
found = true
break
}
}
}
return found, channel
}
func Dot11ParseEncryption(packet gopacket.Packet, dot11 *layers.Dot11) (bool, string, string, string) {
var i uint16
enc := ""