git: 3df3e9a27d5f - stable/13 - LinuxKPI: 802.11: fix IEEE80211_TX_INFO_DRIVER_DATA_SIZE

From: Bjoern A. Zeeb <bz_at_FreeBSD.org>
Date: Mon, 26 Jun 2023 12:08:42 UTC
The branch stable/13 has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=3df3e9a27d5f5cc4dedc2d4003bbb049c471f789

commit 3df3e9a27d5f5cc4dedc2d4003bbb049c471f789
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2023-05-11 21:35:11 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2023-06-26 09:14:22 +0000

    LinuxKPI: 802.11: fix IEEE80211_TX_INFO_DRIVER_DATA_SIZE
    
    Fix the sizing of IEEE80211_TX_INFO_DRIVER_DATA_SIZE so that it
    also works on 32bit platforms.  Otherwise it triggers a compile-time
    assertion in ath10k for i386.
    
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit 910a834383587fc6630225200cc66b7965d5102f)
---
 sys/compat/linuxkpi/common/include/net/mac80211.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/compat/linuxkpi/common/include/net/mac80211.h b/sys/compat/linuxkpi/common/include/net/mac80211.h
index 77045f866e8b..9cef12d825d7 100644
--- a/sys/compat/linuxkpi/common/include/net/mac80211.h
+++ b/sys/compat/linuxkpi/common/include/net/mac80211.h
@@ -755,7 +755,7 @@ struct ieee80211_tx_info {
 			bool				is_valid_ack_signal;
 			void				*status_driver_data[16 / sizeof(void *)];		/* XXX TODO */
 		} status;
-#define	IEEE80211_TX_INFO_DRIVER_DATA_SIZE	(5 * sizeof(void *))			/* XXX TODO 5? */
+#define	IEEE80211_TX_INFO_DRIVER_DATA_SIZE	40
 		void					*driver_data[IEEE80211_TX_INFO_DRIVER_DATA_SIZE / sizeof(void *)];
 	};
 };