wifi module: fix on beacon parsing and multiple channel selection

This commit is contained in:
Matrix86 2018-03-12 16:06:51 +01:00
parent 582e1ae81e
commit 4726c2fc9d
4 changed files with 105 additions and 22 deletions

View file

@ -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
}