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

This reverts commit 054ce2a1bf.
This commit is contained in:
evilsocket 2018-03-12 14:13:49 +01:00
commit 1e408f62ba
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
3 changed files with 19 additions and 99 deletions

View file

@ -66,23 +66,6 @@ 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 := ""

View file

@ -211,11 +211,3 @@ func Dot11InformationElementRSNInfoDecode(buf []byte) (rsn RSNInfo, err error) {
return
}
func Dot11InformationElementIDDSSetDecode(buf []byte) (channel int, err error) {
if err = canParse("DSSet.channel", buf, 1); err == nil {
channel = int(buf[0])
}
return
}