diff options
Diffstat (limited to 'include/net/ieee80211_radiotap.h')
-rw-r--r-- | include/net/ieee80211_radiotap.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/net/ieee80211_radiotap.h b/include/net/ieee80211_radiotap.h index a0c2b41a24d7..22e047758ba1 100644 --- a/include/net/ieee80211_radiotap.h +++ b/include/net/ieee80211_radiotap.h | |||
@@ -255,4 +255,13 @@ enum ieee80211_radiotap_type { | |||
255 | (((x) == 14) ? 2484 : ((x) * 5) + 2407) : \ | 255 | (((x) == 14) ? 2484 : ((x) * 5) + 2407) : \ |
256 | ((x) + 1000) * 5) | 256 | ((x) + 1000) * 5) |
257 | 257 | ||
258 | /* helpers */ | ||
259 | static inline int ieee80211_get_radiotap_len(unsigned char *data) | ||
260 | { | ||
261 | struct ieee80211_radiotap_header *hdr = | ||
262 | (struct ieee80211_radiotap_header *)data; | ||
263 | |||
264 | return le16_to_cpu(hdr->it_len); | ||
265 | } | ||
266 | |||
258 | #endif /* IEEE80211_RADIOTAP_H */ | 267 | #endif /* IEEE80211_RADIOTAP_H */ |