projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42624d4
)
ieee80211: Introduce ieee80211_is_first_frag
author
Helmut Schaa
<
[email protected]
>
Thu, 8 Dec 2011 12:11:54 +0000
(13:11 +0100)
committer
John W. Linville
<
[email protected]
>
Tue, 13 Dec 2011 20:30:40 +0000
(15:30 -0500)
Signed-off-by: Helmut Schaa <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
include/linux/ieee80211.h
patch
|
blob
|
history
diff --git
a/include/linux/ieee80211.h
b/include/linux/ieee80211.h
index 17f2a768e2ada1676fed7e1a76f7d06978f131ba..210e2c3255342f7cf6546ca0e1718fe6dc0e2dd4 100644
(file)
--- a/
include/linux/ieee80211.h
+++ b/
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;