diff options
author | John W. Linville <linville@tuxdriver.com> | 2010-03-10 11:08:48 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-03-15 15:31:43 -0400 |
commit | 6fe10e760bcde8c29b84ad16f54015af5ef59ff5 (patch) | |
tree | 28f74a824bb66b71b328af64cbb6523e26d4eab6 /drivers | |
parent | f3a981ffddcc9671505b85ead976630878116434 (diff) |
ath5k: remove some dead functions
"ath5k: remove stale function declarations, make some functions static"
commented-out some unused functions. This removes them.
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Acked-by: Bob Copeland <me@bobcopeland.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/ath/ath5k/pcu.c | 82 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath5k/phy.c | 12 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath5k/qcu.c | 19 |
3 files changed, 0 insertions, 113 deletions
diff --git a/drivers/net/wireless/ath/ath5k/pcu.c b/drivers/net/wireless/ath/ath5k/pcu.c index c813046b3540..9247123c9b6d 100644 --- a/drivers/net/wireless/ath/ath5k/pcu.c +++ b/drivers/net/wireless/ath/ath5k/pcu.c | |||
@@ -178,21 +178,6 @@ void ath5k_hw_set_ack_bitrate_high(struct ath5k_hw *ah, bool high) | |||
178 | * ACK/CTS Timeouts * | 178 | * ACK/CTS Timeouts * |
179 | \******************/ | 179 | \******************/ |
180 | 180 | ||
181 | #if 0 | ||
182 | /** | ||
183 | * ath5k_hw_het_ack_timeout - Get ACK timeout from PCU in usec | ||
184 | * | ||
185 | * @ah: The &struct ath5k_hw | ||
186 | */ | ||
187 | unsigned int ath5k_hw_get_ack_timeout(struct ath5k_hw *ah) | ||
188 | { | ||
189 | ATH5K_TRACE(ah->ah_sc); | ||
190 | |||
191 | return ath5k_hw_clocktoh(ah, AR5K_REG_MS(ath5k_hw_reg_read(ah, | ||
192 | AR5K_TIME_OUT), AR5K_TIME_OUT_ACK)); | ||
193 | } | ||
194 | #endif | ||
195 | |||
196 | /** | 181 | /** |
197 | * ath5k_hw_set_ack_timeout - Set ACK timeout on PCU | 182 | * ath5k_hw_set_ack_timeout - Set ACK timeout on PCU |
198 | * | 183 | * |
@@ -212,20 +197,6 @@ static int ath5k_hw_set_ack_timeout(struct ath5k_hw *ah, unsigned int timeout) | |||
212 | return 0; | 197 | return 0; |
213 | } | 198 | } |
214 | 199 | ||
215 | #if 0 | ||
216 | /** | ||
217 | * ath5k_hw_get_cts_timeout - Get CTS timeout from PCU in usec | ||
218 | * | ||
219 | * @ah: The &struct ath5k_hw | ||
220 | */ | ||
221 | unsigned int ath5k_hw_get_cts_timeout(struct ath5k_hw *ah) | ||
222 | { | ||
223 | ATH5K_TRACE(ah->ah_sc); | ||
224 | return ath5k_hw_clocktoh(ah, AR5K_REG_MS(ath5k_hw_reg_read(ah, | ||
225 | AR5K_TIME_OUT), AR5K_TIME_OUT_CTS)); | ||
226 | } | ||
227 | #endif | ||
228 | |||
229 | /** | 200 | /** |
230 | * ath5k_hw_set_cts_timeout - Set CTS timeout on PCU | 201 | * ath5k_hw_set_cts_timeout - Set CTS timeout on PCU |
231 | * | 202 | * |
@@ -455,44 +426,6 @@ void ath5k_hw_set_mcast_filter(struct ath5k_hw *ah, u32 filter0, u32 filter1) | |||
455 | ath5k_hw_reg_write(ah, filter1, AR5K_MCAST_FILTER1); | 426 | ath5k_hw_reg_write(ah, filter1, AR5K_MCAST_FILTER1); |
456 | } | 427 | } |
457 | 428 | ||
458 | #if 0 | ||
459 | /* | ||
460 | * Set multicast filter by index | ||
461 | */ | ||
462 | int ath5k_hw_set_mcast_filter_idx(struct ath5k_hw *ah, u32 index) | ||
463 | { | ||
464 | |||
465 | ATH5K_TRACE(ah->ah_sc); | ||
466 | if (index >= 64) | ||
467 | return -EINVAL; | ||
468 | else if (index >= 32) | ||
469 | AR5K_REG_ENABLE_BITS(ah, AR5K_MCAST_FILTER1, | ||
470 | (1 << (index - 32))); | ||
471 | else | ||
472 | AR5K_REG_ENABLE_BITS(ah, AR5K_MCAST_FILTER0, (1 << index)); | ||
473 | |||
474 | return 0; | ||
475 | } | ||
476 | |||
477 | /* | ||
478 | * Clear Multicast filter by index | ||
479 | */ | ||
480 | int ath5k_hw_clear_mcast_filter_idx(struct ath5k_hw *ah, u32 index) | ||
481 | { | ||
482 | |||
483 | ATH5K_TRACE(ah->ah_sc); | ||
484 | if (index >= 64) | ||
485 | return -EINVAL; | ||
486 | else if (index >= 32) | ||
487 | AR5K_REG_DISABLE_BITS(ah, AR5K_MCAST_FILTER1, | ||
488 | (1 << (index - 32))); | ||
489 | else | ||
490 | AR5K_REG_DISABLE_BITS(ah, AR5K_MCAST_FILTER0, (1 << index)); | ||
491 | |||
492 | return 0; | ||
493 | } | ||
494 | #endif | ||
495 | |||
496 | /** | 429 | /** |
497 | * ath5k_hw_get_rx_filter - Get current rx filter | 430 | * ath5k_hw_get_rx_filter - Get current rx filter |
498 | * | 431 | * |
@@ -964,21 +897,6 @@ int ath5k_hw_reset_key(struct ath5k_hw *ah, u16 entry) | |||
964 | return 0; | 897 | return 0; |
965 | } | 898 | } |
966 | 899 | ||
967 | #if 0 | ||
968 | /* | ||
969 | * Check if a table entry is valid | ||
970 | */ | ||
971 | int ath5k_hw_is_key_valid(struct ath5k_hw *ah, u16 entry) | ||
972 | { | ||
973 | ATH5K_TRACE(ah->ah_sc); | ||
974 | AR5K_ASSERT_ENTRY(entry, AR5K_KEYTABLE_SIZE); | ||
975 | |||
976 | /* Check the validation flag at the end of the entry */ | ||
977 | return ath5k_hw_reg_read(ah, AR5K_KEYTABLE_MAC1(entry)) & | ||
978 | AR5K_KEYTABLE_VALID; | ||
979 | } | ||
980 | #endif | ||
981 | |||
982 | static | 900 | static |
983 | int ath5k_keycache_type(const struct ieee80211_key_conf *key) | 901 | int ath5k_keycache_type(const struct ieee80211_key_conf *key) |
984 | { | 902 | { |
diff --git a/drivers/net/wireless/ath/ath5k/phy.c b/drivers/net/wireless/ath/ath5k/phy.c index 20d562b07c95..e291bfbd6e68 100644 --- a/drivers/net/wireless/ath/ath5k/phy.c +++ b/drivers/net/wireless/ath/ath5k/phy.c | |||
@@ -1781,18 +1781,6 @@ ath5k_hw_set_def_antenna(struct ath5k_hw *ah, u8 ant) | |||
1781 | ath5k_hw_reg_write(ah, ant & 0x7, AR5K_DEFAULT_ANTENNA); | 1781 | ath5k_hw_reg_write(ah, ant & 0x7, AR5K_DEFAULT_ANTENNA); |
1782 | } | 1782 | } |
1783 | 1783 | ||
1784 | #if 0 | ||
1785 | unsigned int ath5k_hw_get_def_antenna(struct ath5k_hw *ah) | ||
1786 | { | ||
1787 | ATH5K_TRACE(ah->ah_sc); | ||
1788 | |||
1789 | if (ah->ah_version != AR5K_AR5210) | ||
1790 | return ath5k_hw_reg_read(ah, AR5K_DEFAULT_ANTENNA) & 0x7; | ||
1791 | |||
1792 | return false; /*XXX: What do we return for 5210 ?*/ | ||
1793 | } | ||
1794 | #endif | ||
1795 | |||
1796 | /* | 1784 | /* |
1797 | * Enable/disable fast rx antenna diversity | 1785 | * Enable/disable fast rx antenna diversity |
1798 | */ | 1786 | */ |
diff --git a/drivers/net/wireless/ath/ath5k/qcu.c b/drivers/net/wireless/ath/ath5k/qcu.c index d9cab7c3cff7..f5831da33f7b 100644 --- a/drivers/net/wireless/ath/ath5k/qcu.c +++ b/drivers/net/wireless/ath/ath5k/qcu.c | |||
@@ -516,25 +516,6 @@ int ath5k_hw_reset_tx_queue(struct ath5k_hw *ah, unsigned int queue) | |||
516 | return 0; | 516 | return 0; |
517 | } | 517 | } |
518 | 518 | ||
519 | #if 0 | ||
520 | /* | ||
521 | * Get slot time from DCU | ||
522 | */ | ||
523 | unsigned int ath5k_hw_get_slot_time(struct ath5k_hw *ah) | ||
524 | { | ||
525 | unsigned int slot_time_clock; | ||
526 | |||
527 | ATH5K_TRACE(ah->ah_sc); | ||
528 | |||
529 | if (ah->ah_version == AR5K_AR5210) | ||
530 | slot_time_clock = ath5k_hw_reg_read(ah, AR5K_SLOT_TIME); | ||
531 | else | ||
532 | slot_time_clock = ath5k_hw_reg_read(ah, AR5K_DCU_GBL_IFS_SLOT); | ||
533 | |||
534 | return ath5k_hw_clocktoh(ah, slot_time_clock & 0xffff); | ||
535 | } | ||
536 | #endif | ||
537 | |||
538 | /* | 519 | /* |
539 | * Set slot time on DCU | 520 | * Set slot time on DCU |
540 | */ | 521 | */ |