diff options
Diffstat (limited to 'drivers/net/wireless/b43/xmit.h')
-rw-r--r-- | drivers/net/wireless/b43/xmit.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/net/wireless/b43/xmit.h b/drivers/net/wireless/b43/xmit.h index 3530de871873..d23ff9fe0c9e 100644 --- a/drivers/net/wireless/b43/xmit.h +++ b/drivers/net/wireless/b43/xmit.h | |||
@@ -2,6 +2,8 @@ | |||
2 | #define B43_XMIT_H_ | 2 | #define B43_XMIT_H_ |
3 | 3 | ||
4 | #include "main.h" | 4 | #include "main.h" |
5 | #include <net/mac80211.h> | ||
6 | |||
5 | 7 | ||
6 | #define _b43_declare_plcp_hdr(size) \ | 8 | #define _b43_declare_plcp_hdr(size) \ |
7 | struct b43_plcp_hdr##size { \ | 9 | struct b43_plcp_hdr##size { \ |
@@ -332,4 +334,21 @@ static inline u8 b43_kidx_to_raw(struct b43_wldev *dev, u8 firmware_kidx) | |||
332 | return raw_kidx; | 334 | return raw_kidx; |
333 | } | 335 | } |
334 | 336 | ||
337 | /* struct b43_private_tx_info - TX info private to b43. | ||
338 | * The structure is placed in (struct ieee80211_tx_info *)->rate_driver_data | ||
339 | * | ||
340 | * @bouncebuffer: DMA Bouncebuffer (if used) | ||
341 | */ | ||
342 | struct b43_private_tx_info { | ||
343 | void *bouncebuffer; | ||
344 | }; | ||
345 | |||
346 | static inline struct b43_private_tx_info * | ||
347 | b43_get_priv_tx_info(struct ieee80211_tx_info *info) | ||
348 | { | ||
349 | BUILD_BUG_ON(sizeof(struct b43_private_tx_info) > | ||
350 | sizeof(info->rate_driver_data)); | ||
351 | return (struct b43_private_tx_info *)info->rate_driver_data; | ||
352 | } | ||
353 | |||
335 | #endif /* B43_XMIT_H_ */ | 354 | #endif /* B43_XMIT_H_ */ |