diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
commit | ada47b5fe13d89735805b566185f4885f5a3f750 (patch) | |
tree | 644b88f8a71896307d71438e9b3af49126ffb22b /drivers/net/wireless/b43/xmit.h | |
parent | 43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff) | |
parent | 3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff) |
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
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_ */ |