mirror of
				https://git.kernel.org/pub/scm/network/wireless/iwd.git
				synced 2025-10-31 13:17:25 +01:00 
			
		
		
		
	ie: Add IE_CIPHER_IS_GCMP_CCMP inline
Similar to IE_AKM_IS_* functions
This commit is contained in:
		
							parent
							
								
									b3c3b08785
								
							
						
					
					
						commit
						e61cada28f
					
				
							
								
								
									
										8
									
								
								src/ie.h
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								src/ie.h
									
									
									
									
									
								
							| @ -390,6 +390,14 @@ static inline bool IE_AKM_IS_8021X(uint32_t akm) | ||||
| 			IE_RSN_AKM_SUITE_FT_OVER_8021X_SHA384); | ||||
| } | ||||
| 
 | ||||
| static inline bool IE_CIPHER_IS_GCMP_CCMP(uint32_t cipher_suite) | ||||
| { | ||||
| 	return cipher_suite & (IE_RSN_CIPHER_SUITE_CCMP | | ||||
| 				IE_RSN_CIPHER_SUITE_CCMP_256 | | ||||
| 				IE_RSN_CIPHER_SUITE_GCMP | | ||||
| 				IE_RSN_CIPHER_SUITE_GCMP_256); | ||||
| } | ||||
| 
 | ||||
| #define IE_LEN(ie) \ | ||||
| 	((ie) ? (ie)[1] + 2 : 0) | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Denis Kenzior
						Denis Kenzior