diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-06-11 21:21:57 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-06-14 16:18:12 (GMT) |
commit | c9c6950c14ffc0e30e592fec1ebcb203ad3dff10 (patch) | |
tree | bcfdd7dea25e8b6acfea1a54ea28394a531e3fae /net | |
parent | 8b7b1e05b0454f232b8ae1e6ee134b7f0b38abfb (diff) | |
download | linux-fsl-qoriq-c9c6950c14ffc0e30e592fec1ebcb203ad3dff10.tar.xz |
mac80211: make ieee80211_get_hdrlen_from_skb return unsigned
Many callers already expect it to.
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/mac80211/util.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c index 6513bc2..f3c30d0 100644 --- a/net/mac80211/util.c +++ b/net/mac80211/util.c @@ -133,14 +133,14 @@ int ieee80211_get_hdrlen(u16 fc) } EXPORT_SYMBOL(ieee80211_get_hdrlen); -int ieee80211_get_hdrlen_from_skb(const struct sk_buff *skb) +unsigned int ieee80211_get_hdrlen_from_skb(const struct sk_buff *skb) { - const struct ieee80211_hdr *hdr = (const struct ieee80211_hdr *) skb->data; - int hdrlen; + const struct ieee80211_hdr *hdr = (const struct ieee80211_hdr *)skb->data; + unsigned int hdrlen; if (unlikely(skb->len < 10)) return 0; - hdrlen = ieee80211_get_hdrlen(le16_to_cpu(hdr->frame_control)); + hdrlen = ieee80211_hdrlen(hdr->frame_control); if (unlikely(hdrlen > skb->len)) return 0; return hdrlen; |