diff options
author | Helmut Schaa <helmut.schaa@googlemail.com> | 2011-12-08 07:11:54 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-12-13 15:30:40 -0500 |
commit | 8cb25e14fe80d0fac42412364df573eb3e8e83cc (patch) | |
tree | 5472f45b7ab1d41415dffe8ea661b1fc57bd68b7 /include/linux | |
parent | 42624d4913a00219a8fdbb4bafd634d1d843be85 (diff) |
ieee80211: Introduce ieee80211_is_first_frag
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/ieee80211.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h index 17f2a768e2ad..210e2c325534 100644 --- a/include/linux/ieee80211.h +++ b/include/linux/ieee80211.h | |||
@@ -544,6 +544,15 @@ static inline int ieee80211_is_qos_nullfunc(__le16 fc) | |||
544 | cpu_to_le16(IEEE80211_FTYPE_DATA | IEEE80211_STYPE_QOS_NULLFUNC); | 544 | cpu_to_le16(IEEE80211_FTYPE_DATA | IEEE80211_STYPE_QOS_NULLFUNC); |
545 | } | 545 | } |
546 | 546 | ||
547 | /** | ||
548 | * ieee80211_is_first_frag - check if IEEE80211_SCTL_FRAG is not set | ||
549 | * @seq_ctrl: frame sequence control bytes in little-endian byteorder | ||
550 | */ | ||
551 | static inline int ieee80211_is_first_frag(__le16 seq_ctrl) | ||
552 | { | ||
553 | return (seq_ctrl & cpu_to_le16(IEEE80211_SCTL_FRAG)) == 0; | ||
554 | } | ||
555 | |||
547 | struct ieee80211s_hdr { | 556 | struct ieee80211s_hdr { |
548 | u8 flags; | 557 | u8 flags; |
549 | u8 ttl; | 558 | u8 ttl; |