aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/bss.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2019-01-02 15:56:41 (GMT)
committerJouni Malinen <j@w1.fi>2019-01-02 16:13:19 (GMT)
commited87f6a80eb5595e08fc57d3b10968f99ea57568 (patch)
tree7a4cae40ac9016edbcaaba63422813d52780627d /wpa_supplicant/bss.c
parent2e2f0f45def24efdf62f378e1ce0c072ea0bc45a (diff)
downloadhostap-ed87f6a80eb5595e08fc57d3b10968f99ea57568.zip
hostap-ed87f6a80eb5595e08fc57d3b10968f99ea57568.tar.gz
hostap-ed87f6a80eb5595e08fc57d3b10968f99ea57568.tar.bz2
Use a helper function for checking Extended Capabilities field
The new ieee802_11_ext_capab() and wpa_bss_ext_capab() functions can be used to check whether a specific extended capability bit is set instead of having to implement bit parsing separately for each need. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/bss.c')
-rw-r--r--wpa_supplicant/bss.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/wpa_supplicant/bss.c b/wpa_supplicant/bss.c
index 3a41db9..9b19f37 100644
--- a/wpa_supplicant/bss.c
+++ b/wpa_supplicant/bss.c
@@ -1,6 +1,6 @@
/*
* BSS table
- * Copyright (c) 2009-2015, Jouni Malinen <j@w1.fi>
+ * Copyright (c) 2009-2019, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
@@ -1337,3 +1337,10 @@ const u8 * wpa_bss_get_fils_cache_id(struct wpa_bss *bss)
return NULL;
}
#endif /* CONFIG_FILS */
+
+
+int wpa_bss_ext_capab(const struct wpa_bss *bss, unsigned int capab)
+{
+ return ieee802_11_ext_capab(wpa_bss_get_ie(bss, WLAN_EID_EXT_CAPAB),
+ capab);
+}