ieee80211: Introduce ieee80211_is_first_frag
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
		
					parent
					
						
							
								42624d4913
							
						
					
				
			
			
				commit
				
					
						8cb25e14fe
					
				
			
		
					 1 changed files with 9 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue