diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2010-01-26 14:15:46 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-01-26 11:53:20 -0500 |
commit | c21dbf9214bce129f92e1af05552553ff0e318ed (patch) | |
tree | 23f57010f34fc26ecf1d349a118f977afea418e4 /include | |
parent | 18c949070b57d2cbcc0b25c5cfa003ece204e468 (diff) | |
download | op-kernel-dev-c21dbf9214bce129f92e1af05552553ff0e318ed.zip op-kernel-dev-c21dbf9214bce129f92e1af05552553ff0e318ed.tar.gz |
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')
-rw-r--r-- | include/net/cfg80211.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index c5d16f2..a3f0a7e 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, */ unsigned int cfg80211_classify8021d(struct sk_buff *skb); +/** + * cfg80211_find_ie - find information element in data + * + * @eid: element ID + * @ies: data consisting of IEs + * @len: length of data + * + * This function will return %NULL if the element ID could + * not be found or if the element is invalid (claims to be + * longer than the given data), or a pointer to the first byte + * of the requested element, that is the byte containing the + * element ID. There are no checks on the element length + * other than having to fit into the given data. + */ +const u8 *cfg80211_find_ie(u8 eid, const u8 *ies, int len); + /* * Regulatory helper functions for wiphys */ |