mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-09-04 20:19:47 +08:00 
			
		
		
		
	iwlwifi: api: annotate compressed BA notif array sizes
Annotate the compressed BA notification array sizes and make both of them 0-length since the length of 1 is just confusing - it may be different than that and the offset to the second one needs to be calculated in the C code anyhow. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
This commit is contained in:
		
							parent
							
								
									7f768ad5eb
								
							
						
					
					
						commit
						6f68cc367a
					
				| @ -747,9 +747,9 @@ enum iwl_mvm_ba_resp_flags { | |||||||
|  * @tfd_cnt: number of TFD-Q elements |  * @tfd_cnt: number of TFD-Q elements | ||||||
|  * @ra_tid_cnt: number of RATID-Q elements |  * @ra_tid_cnt: number of RATID-Q elements | ||||||
|  * @tfd: array of TFD queue status updates. See &iwl_mvm_compressed_ba_tfd |  * @tfd: array of TFD queue status updates. See &iwl_mvm_compressed_ba_tfd | ||||||
|  *	for details. |  *	for details. Length in @tfd_cnt. | ||||||
|  * @ra_tid: array of RA-TID queue status updates. For debug purposes only. See |  * @ra_tid: array of RA-TID queue status updates. For debug purposes only. See | ||||||
|  *	&iwl_mvm_compressed_ba_ratid for more details. |  *	&iwl_mvm_compressed_ba_ratid for more details. Length in @ra_tid_cnt. | ||||||
|  */ |  */ | ||||||
| struct iwl_mvm_compressed_ba_notif { | struct iwl_mvm_compressed_ba_notif { | ||||||
| 	__le32 flags; | 	__le32 flags; | ||||||
| @ -766,7 +766,7 @@ struct iwl_mvm_compressed_ba_notif { | |||||||
| 	__le32 tx_rate; | 	__le32 tx_rate; | ||||||
| 	__le16 tfd_cnt; | 	__le16 tfd_cnt; | ||||||
| 	__le16 ra_tid_cnt; | 	__le16 ra_tid_cnt; | ||||||
| 	struct iwl_mvm_compressed_ba_tfd tfd[1]; | 	struct iwl_mvm_compressed_ba_tfd tfd[0]; | ||||||
| 	struct iwl_mvm_compressed_ba_ratid ra_tid[0]; | 	struct iwl_mvm_compressed_ba_ratid ra_tid[0]; | ||||||
| } __packed; /* COMPRESSED_BA_RES_API_S_VER_4 */ | } __packed; /* COMPRESSED_BA_RES_API_S_VER_4 */ | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Johannes Berg
						Johannes Berg