diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00lib.h')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00lib.h | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00lib.h b/drivers/net/wireless/rt2x00/rt2x00lib.h index be2e37fb4071..ed27de1de57b 100644 --- a/drivers/net/wireless/rt2x00/rt2x00lib.h +++ b/drivers/net/wireless/rt2x00/rt2x00lib.h | |||
@@ -27,8 +27,6 @@ | |||
27 | #ifndef RT2X00LIB_H | 27 | #ifndef RT2X00LIB_H |
28 | #define RT2X00LIB_H | 28 | #define RT2X00LIB_H |
29 | 29 | ||
30 | #include "rt2x00dump.h" | ||
31 | |||
32 | /* | 30 | /* |
33 | * Interval defines | 31 | * Interval defines |
34 | */ | 32 | */ |
@@ -107,13 +105,6 @@ struct sk_buff *rt2x00queue_alloc_rxskb(struct rt2x00_dev *rt2x00dev, | |||
107 | struct queue_entry *entry); | 105 | struct queue_entry *entry); |
108 | 106 | ||
109 | /** | 107 | /** |
110 | * rt2x00queue_unmap_skb - Unmap a skb from DMA. | ||
111 | * @rt2x00dev: Pointer to &struct rt2x00_dev. | ||
112 | * @skb: The skb to unmap. | ||
113 | */ | ||
114 | void rt2x00queue_unmap_skb(struct rt2x00_dev *rt2x00dev, struct sk_buff *skb); | ||
115 | |||
116 | /** | ||
117 | * rt2x00queue_free_skb - free a skb | 108 | * rt2x00queue_free_skb - free a skb |
118 | * @rt2x00dev: Pointer to &struct rt2x00_dev. | 109 | * @rt2x00dev: Pointer to &struct rt2x00_dev. |
119 | * @skb: The skb to free. | 110 | * @skb: The skb to free. |
@@ -296,8 +287,6 @@ static inline void rt2x00lib_free_firmware(struct rt2x00_dev *rt2x00dev) | |||
296 | #ifdef CONFIG_RT2X00_LIB_DEBUGFS | 287 | #ifdef CONFIG_RT2X00_LIB_DEBUGFS |
297 | void rt2x00debug_register(struct rt2x00_dev *rt2x00dev); | 288 | void rt2x00debug_register(struct rt2x00_dev *rt2x00dev); |
298 | void rt2x00debug_deregister(struct rt2x00_dev *rt2x00dev); | 289 | void rt2x00debug_deregister(struct rt2x00_dev *rt2x00dev); |
299 | void rt2x00debug_dump_frame(struct rt2x00_dev *rt2x00dev, | ||
300 | enum rt2x00_dump_type type, struct sk_buff *skb); | ||
301 | void rt2x00debug_update_crypto(struct rt2x00_dev *rt2x00dev, | 290 | void rt2x00debug_update_crypto(struct rt2x00_dev *rt2x00dev, |
302 | struct rxdone_entry_desc *rxdesc); | 291 | struct rxdone_entry_desc *rxdesc); |
303 | #else | 292 | #else |
@@ -309,12 +298,6 @@ static inline void rt2x00debug_deregister(struct rt2x00_dev *rt2x00dev) | |||
309 | { | 298 | { |
310 | } | 299 | } |
311 | 300 | ||
312 | static inline void rt2x00debug_dump_frame(struct rt2x00_dev *rt2x00dev, | ||
313 | enum rt2x00_dump_type type, | ||
314 | struct sk_buff *skb) | ||
315 | { | ||
316 | } | ||
317 | |||
318 | static inline void rt2x00debug_update_crypto(struct rt2x00_dev *rt2x00dev, | 301 | static inline void rt2x00debug_update_crypto(struct rt2x00_dev *rt2x00dev, |
319 | struct rxdone_entry_desc *rxdesc) | 302 | struct rxdone_entry_desc *rxdesc) |
320 | { | 303 | { |
@@ -384,12 +367,21 @@ static inline void rt2x00crypto_rx_insert_iv(struct sk_buff *skb, | |||
384 | void rt2x00ht_create_tx_descriptor(struct queue_entry *entry, | 367 | void rt2x00ht_create_tx_descriptor(struct queue_entry *entry, |
385 | struct txentry_desc *txdesc, | 368 | struct txentry_desc *txdesc, |
386 | const struct rt2x00_rate *hwrate); | 369 | const struct rt2x00_rate *hwrate); |
370 | |||
371 | u16 rt2x00ht_center_channel(struct rt2x00_dev *rt2x00dev, | ||
372 | struct ieee80211_conf *conf); | ||
387 | #else | 373 | #else |
388 | static inline void rt2x00ht_create_tx_descriptor(struct queue_entry *entry, | 374 | static inline void rt2x00ht_create_tx_descriptor(struct queue_entry *entry, |
389 | struct txentry_desc *txdesc, | 375 | struct txentry_desc *txdesc, |
390 | const struct rt2x00_rate *hwrate) | 376 | const struct rt2x00_rate *hwrate) |
391 | { | 377 | { |
392 | } | 378 | } |
379 | |||
380 | static inline u16 rt2x00ht_center_channel(struct rt2x00_dev *rt2x00dev, | ||
381 | struct ieee80211_conf *conf) | ||
382 | { | ||
383 | return conf->channel->hw_value; | ||
384 | } | ||
393 | #endif /* CONFIG_RT2X00_LIB_HT */ | 385 | #endif /* CONFIG_RT2X00_LIB_HT */ |
394 | 386 | ||
395 | /* | 387 | /* |