From c56c29d4f62a38fef0514ce585858c04ff156885 Mon Sep 17 00:00:00 2001 From: Helmut Schaa Date: Thu, 8 Dec 2011 13:11:54 +0100 Subject: [PATCH] --- yaml --- r: 278886 b: refs/heads/master c: 8cb25e14fe80d0fac42412364df573eb3e8e83cc h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/linux/ieee80211.h | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 4cd8aaa43813..11c8088fd83a 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 42624d4913a00219a8fdbb4bafd634d1d843be85 +refs/heads/master: 8cb25e14fe80d0fac42412364df573eb3e8e83cc diff --git a/trunk/include/linux/ieee80211.h b/trunk/include/linux/ieee80211.h index 17f2a768e2ad..210e2c325534 100644 --- a/trunk/include/linux/ieee80211.h +++ b/trunk/include/linux/ieee80211.h @@ -544,6 +544,15 @@ static inline int ieee80211_is_qos_nullfunc(__le16 fc) cpu_to_le16(IEEE80211_FTYPE_DATA | IEEE80211_STYPE_QOS_NULLFUNC); } +/** + * ieee80211_is_first_frag - check if IEEE80211_SCTL_FRAG is not set + * @seq_ctrl: frame sequence control bytes in little-endian byteorder + */ +static inline int ieee80211_is_first_frag(__le16 seq_ctrl) +{ + return (seq_ctrl & cpu_to_le16(IEEE80211_SCTL_FRAG)) == 0; +} + struct ieee80211s_hdr { u8 flags; u8 ttl;