diff --git a/client_linux.go b/client_linux.go index aed8ec0..0cf9aa9 100644 --- a/client_linux.go +++ b/client_linux.go @@ -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 diff --git a/wifi.go b/wifi.go index 7117af3..cd893a6 100644 --- a/wifi.go +++ b/wifi.go @@ -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 @@ -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 }