diff options
author | Boris Sorochkin <qca_bsoroc@qca.qualcomm.com> | 2014-05-12 07:35:41 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2014-05-26 20:35:52 (GMT) |
commit | e403ba859ecccb7530f0c9c3c22543b5f699f87e (patch) | |
tree | c5d2102fa55012fcd7536c6c1c11aeb3ea196d8c /wpa_supplicant/bss.h | |
parent | f7454c97dfe1f1d1ef45ce3557bbf81a29af977b (diff) | |
download | hostap-e403ba859ecccb7530f0c9c3c22543b5f699f87e.zip hostap-e403ba859ecccb7530f0c9c3c22543b5f699f87e.tar.gz hostap-e403ba859ecccb7530f0c9c3c22543b5f699f87e.tar.bz2 |
Parse DMG capabilities when reporting to external interfaces
This adds [DMG] and [PBSS] flags for scan results and BSS table entries
using the IEEE Std 802.11ad-2012 updated definition of the Capability
field.
Signed-off-by: Boris Sorochkin <qca_bsoroc@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/bss.h')
-rw-r--r-- | wpa_supplicant/bss.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/wpa_supplicant/bss.h b/wpa_supplicant/bss.h index 30df7ca..4a624c5 100644 --- a/wpa_supplicant/bss.h +++ b/wpa_supplicant/bss.h @@ -130,4 +130,9 @@ int wpa_bss_get_bit_rates(const struct wpa_bss *bss, u8 **rates); struct wpa_bss_anqp * wpa_bss_anqp_alloc(void); int wpa_bss_anqp_unshare_alloc(struct wpa_bss *bss); +static inline int bss_is_dmg(const struct wpa_bss *bss) +{ + return bss->freq > 45000; +} + #endif /* BSS_H */ |