mirror of
https://github.com/bettercap/bettercap
synced 2025-07-30 11:40:33 -07:00
wifi module: fix on beacon parsing and multiple channel selection
This commit is contained in:
parent
582e1ae81e
commit
4726c2fc9d
4 changed files with 105 additions and 22 deletions
|
@ -211,3 +211,11 @@ 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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue