diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-06-11 17:21:57 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-06-14 12:18:13 -0400 |
commit | 6693be7124cb8e4f15f0d80ed6e3e50678771737 (patch) | |
tree | aadddb7a21250d1e7b76e0f4ba2ca124288515e3 /include/net/mac80211.h | |
parent | c9c6950c14ffc0e30e592fec1ebcb203ad3dff10 (diff) |
mac80211: add utility function to get header length
Take a __le16 directly rather than a host-endian value.
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/net/mac80211.h')
-rw-r--r-- | include/net/mac80211.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index f9b391faaf76..7ab4ff6159a2 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
@@ -1548,6 +1548,12 @@ unsigned int ieee80211_get_hdrlen_from_skb(const struct sk_buff *skb); | |||
1548 | int ieee80211_get_hdrlen(u16 fc); | 1548 | int ieee80211_get_hdrlen(u16 fc); |
1549 | 1549 | ||
1550 | /** | 1550 | /** |
1551 | * ieee80211_hdrlen - get header length in bytes from frame control | ||
1552 | * @fc: frame control field in little-endian format | ||
1553 | */ | ||
1554 | unsigned int ieee80211_hdrlen(__le16 fc); | ||
1555 | |||
1556 | /** | ||
1551 | * ieee80211_get_tkip_key - get a TKIP rc4 for skb | 1557 | * ieee80211_get_tkip_key - get a TKIP rc4 for skb |
1552 | * | 1558 | * |
1553 | * This function computes a TKIP rc4 key for an skb. It computes | 1559 | * This function computes a TKIP rc4 key for an skb. It computes |