aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2x00lib.h
diff options
context:
space:
mode:
authorGertjan van Wingerde <gwingerde@gmail.com>2011-04-18 09:33:41 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-04-19 15:39:56 -0400
commit46a01ec00d05581c5bd0c37e680d5b37af4953b4 (patch)
treef5bca6d09ed4cb90f06e171b749356be691cbae6 /drivers/net/wireless/rt2x00/rt2x00lib.h
parentea81966ccc2edd324c1fa382260a62a4400a032a (diff)
rt2x00: Merge rt2x00ht.c contents in other files.
The two functions that are in rt2x00ht.c can be much better placed closer to the places where the call-sites of these functions are (one in rt2x00config.c and one in rt2x00queue.c) allowing us to make these functions static. Also, conditional compilations doesn't seem to be necessary anymore as 802.11n support is quite common nowadays. This makes the code a bit easier readable and searchable. Signed-off-by: Gertjan van Wingerde <gwingerde@gmail.com> Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00lib.h')
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00lib.h24
1 files changed, 0 insertions, 24 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00lib.h b/drivers/net/wireless/rt2x00/rt2x00lib.h
index 57ede6ccf40c..322cc4f3de5d 100644
--- a/drivers/net/wireless/rt2x00/rt2x00lib.h
+++ b/drivers/net/wireless/rt2x00/rt2x00lib.h
@@ -388,30 +388,6 @@ static inline void rt2x00crypto_rx_insert_iv(struct sk_buff *skb,
388#endif /* CONFIG_RT2X00_LIB_CRYPTO */ 388#endif /* CONFIG_RT2X00_LIB_CRYPTO */
389 389
390/* 390/*
391 * HT handlers.
392 */
393#ifdef CONFIG_RT2X00_LIB_HT
394void rt2x00ht_create_tx_descriptor(struct queue_entry *entry,
395 struct txentry_desc *txdesc,
396 const struct rt2x00_rate *hwrate);
397
398u16 rt2x00ht_center_channel(struct rt2x00_dev *rt2x00dev,
399 struct ieee80211_conf *conf);
400#else
401static inline void rt2x00ht_create_tx_descriptor(struct queue_entry *entry,
402 struct txentry_desc *txdesc,
403 const struct rt2x00_rate *hwrate)
404{
405}
406
407static inline u16 rt2x00ht_center_channel(struct rt2x00_dev *rt2x00dev,
408 struct ieee80211_conf *conf)
409{
410 return conf->channel->hw_value;
411}
412#endif /* CONFIG_RT2X00_LIB_HT */
413
414/*
415 * RFkill handlers. 391 * RFkill handlers.
416 */ 392 */
417static inline void rt2x00rfkill_register(struct rt2x00_dev *rt2x00dev) 393static inline void rt2x00rfkill_register(struct rt2x00_dev *rt2x00dev)