diff options
author | David Bauer <mail@david-bauer.net> | 2020-01-31 14:45:03 +0100 |
---|---|---|
committer | David Bauer <mail@david-bauer.net> | 2020-02-04 14:44:14 +0100 |
commit | a6914dc0dc3cba65e245fbe40076626ea2bcd5a3 (patch) | |
tree | a3b5d78b90859d923e60595972d744c37360d479 /include | |
parent | bb216982951698833bbdf4a88872e9b5ccd026a5 (diff) | |
download | iwinfo-a6914dc0dc3cba65e245fbe40076626ea2bcd5a3.tar.gz |
iwinfo: add BSS load element to scan result
This adds support for the BSS load information element. With this patch,
the BSS load information is visible when using the CLI as well as when
accessing scan results using the LUA binding.
Signed-off-by: David Bauer <mail@david-bauer.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/iwinfo.h | 6 | ||||
-rw-r--r-- | include/iwinfo/utils.h | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/include/iwinfo.h b/include/iwinfo.h index 5e64294..b07820d 100644 --- a/include/iwinfo.h +++ b/include/iwinfo.h @@ -179,6 +179,12 @@ struct iwinfo_scanlist_entry { uint8_t quality; uint8_t quality_max; struct iwinfo_crypto_entry crypto; + + /* BSS Load */ + uint8_t has_bss_load; + uint8_t station_count; + uint8_t channel_utilization; + uint8_t admission_capacity; }; struct iwinfo_country_entry { diff --git a/include/iwinfo/utils.h b/include/iwinfo/utils.h index 98b9c89..a71bc9b 100644 --- a/include/iwinfo/utils.h +++ b/include/iwinfo/utils.h @@ -53,6 +53,8 @@ struct iwinfo_hardware_entry * iwinfo_hardware(struct iwinfo_hardware_id *id); int iwinfo_hardware_id_from_mtd(struct iwinfo_hardware_id *id); +void iwinfo_parse_bss_load(struct iwinfo_scanlist_entry *e, uint8_t *data); + void iwinfo_parse_rsn(struct iwinfo_crypto_entry *c, uint8_t *data, uint8_t len, uint8_t defcipher, uint8_t defauth); |