X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=include%2Flinux%2Fieee80211.h;fp=include%2Flinux%2Fieee80211.h;h=4c5a283dbff4b3bb3906aabc4d03aa67c46fde14;hb=51351f99742a0eeb52467a04a91709e835d30709;hp=633053047fbc070f4ee93815bfc58855ee2cb046;hpb=48ce24020116b5ac174245d9a45cdce181c75d5a;p=carl9170fw.git diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h index 6330530..4c5a283 100644 --- a/include/linux/ieee80211.h +++ b/include/linux/ieee80211.h @@ -644,6 +644,16 @@ static inline bool ieee80211_is_first_frag(__le16 seq_ctrl) return (seq_ctrl & cpu_to_le16(IEEE80211_SCTL_FRAG)) == 0; } +/** + * ieee80211_is_frag - check if a frame is a fragment + * @hdr: 802.11 header of the frame + */ +static inline bool ieee80211_is_frag(struct ieee80211_hdr *hdr) +{ + return ieee80211_has_morefrags(hdr->frame_control) || + hdr->seq_ctrl & cpu_to_le16(IEEE80211_SCTL_FRAG); +} + struct ieee80211s_hdr { u8 flags; u8 ttl;