Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ieee80211: Introduce ieee80211_is_first_frag

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

authored by

Helmut Schaa and committed by
John W. Linville
8cb25e14 42624d49

+9
+9
include/linux/ieee80211.h
··· 544 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 556 struct ieee80211s_hdr { 548 557 u8 flags; 549 558 u8 ttl;