aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/cfg80211.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2010-01-26 08:15:46 -0500
committerJohn W. Linville <linville@tuxdriver.com>2010-01-26 11:53:20 -0500
commitc21dbf9214bce129f92e1af05552553ff0e318ed (patch)
tree23f57010f34fc26ecf1d349a118f977afea418e4 /include/net/cfg80211.h
parent18c949070b57d2cbcc0b25c5cfa003ece204e468 (diff)
cfg80211: export cfg80211_find_ie
This new function (previously a static function called just "find_ie" can be used to find a specific IE in a buffer of IEs. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/net/cfg80211.h')
-rw-r--r--include/net/cfg80211.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index c5d16f299d6f..a3f0a7ed31ac 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -1658,6 +1658,22 @@ void ieee80211_amsdu_to_8023s(struct sk_buff *skb, struct sk_buff_head *list,
1658 */ 1658 */
1659unsigned int cfg80211_classify8021d(struct sk_buff *skb); 1659unsigned int cfg80211_classify8021d(struct sk_buff *skb);
1660 1660
1661/**
1662 * cfg80211_find_ie - find information element in data
1663 *
1664 * @eid: element ID
1665 * @ies: data consisting of IEs
1666 * @len: length of data
1667 *
1668 * This function will return %NULL if the element ID could
1669 * not be found or if the element is invalid (claims to be
1670 * longer than the given data), or a pointer to the first byte
1671 * of the requested element, that is the byte containing the
1672 * element ID. There are no checks on the element length
1673 * other than having to fit into the given data.
1674 */
1675const u8 *cfg80211_find_ie(u8 eid, const u8 *ies, int len);
1676
1661/* 1677/*
1662 * Regulatory helper functions for wiphys 1678 * Regulatory helper functions for wiphys
1663 */ 1679 */