Skip to content

Commit

Permalink
suggested doc changes
Browse files Browse the repository at this point in the history
Co-authored-by: Ben Kochie <superq@gmail.com>

fix typo

Signed-off-by: Lukas Raffelt <lukas.raffelt@mercedes-benz.com>

expand documentation

Signed-off-by: Lukas Raffelt <lukas.raffelt@mercedes-benz.com>
  • Loading branch information
lukas-mbag committed Dec 11, 2023
1 parent 70dc142 commit 4ac0888
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions client_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -557,13 +557,13 @@ func decodeSSID(b []byte) string {
func decodeBSSLoad(b []byte) (*BSSLoad, error) {
var load BSSLoad
if len(b) == 5 {
// Wiresahrk calls this "802.11e CCA Version"
// Wireshark calls this "802.11e CCA Version"
load.Version = 2
load.StationCount = binary.LittleEndian.Uint16(b[0:2]) // first 2 bytes
load.ChannelUtilization = b[2] // next 1 byte
load.AvailableAdmissionCapacity = binary.LittleEndian.Uint16(b[3:5]) // last 2 bytes
} else if len(b) == 4 {
// Wiresahrk calls this "Cisco QBSS Version 1 - non CCA"
// Wireshark calls this "Cisco QBSS Version 1 - non CCA"
load.Version = 1
load.StationCount = binary.LittleEndian.Uint16(b[0:2]) // first 2 bytes
load.ChannelUtilization = b[2] // next 1 byte
Expand Down
6 changes: 3 additions & 3 deletions wifi.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,12 @@ type StationInfo struct {
BeaconLoss int
}

// BSSLoad is an Information Element containing Measurements of the Load on the BSS
// BSSLoad is an Information Element containing measurements of the load on the BSS.
type BSSLoad struct {
// Version of the BSS Load Element. Can be 1 or 2.
Version int

// Station Count on this BSS
// Station Count on this BSS.
StationCount uint16

// Channel Utilization from 0 to 255
Expand Down Expand Up @@ -222,7 +222,7 @@ type BSS struct {
// The status of the client within the BSS.
Status BSSStatus

// BSSLoad elements
// The load element of the BSS (contains StationCount, ChannelUtilization and AvailableAdmissionCapacity).
Load BSSLoad
}

Expand Down

0 comments on commit 4ac0888

Please sign in to comment.