aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMohammed Shafi Shajakhan <mshajakhan@atheros.com>2011-03-24 09:36:40 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-04-04 16:19:59 -0400
commit2638126a7c7cce87d51ae5d3bfaca9350503c0b4 (patch)
tree13d11c572209fd76c562e0fd979ed81310e2df0a
parent468b0d4482cadd174298e2fe9bde6a20044f90f5 (diff)
ath9k_hw: remove ath9k_get_channel_edges
This function is nowhere used. Signed-off-by: Mohammed Shafi Shajakhan <mshajakhan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/ath/ath9k/hw.c25
-rw-r--r--drivers/net/wireless/ath/ath9k/hw.h3
2 files changed, 0 insertions, 28 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c
index 298f4d6cbdbd..be7baf09eb00 100644
--- a/drivers/net/wireless/ath/ath9k/hw.c
+++ b/drivers/net/wireless/ath/ath9k/hw.c
@@ -156,25 +156,6 @@ u32 ath9k_hw_reverse_bits(u32 val, u32 n)
156 return retval; 156 return retval;
157} 157}
158 158
159bool ath9k_get_channel_edges(struct ath_hw *ah,
160 u16 flags, u16 *low,
161 u16 *high)
162{
163 struct ath9k_hw_capabilities *pCap = &ah->caps;
164
165 if (flags & CHANNEL_5GHZ) {
166 *low = pCap->low_5ghz_chan;
167 *high = pCap->high_5ghz_chan;
168 return true;
169 }
170 if ((flags & CHANNEL_2GHZ)) {
171 *low = pCap->low_2ghz_chan;
172 *high = pCap->high_2ghz_chan;
173 return true;
174 }
175 return false;
176}
177
178u16 ath9k_hw_computetxtime(struct ath_hw *ah, 159u16 ath9k_hw_computetxtime(struct ath_hw *ah,
179 u8 phy, int kbps, 160 u8 phy, int kbps,
180 u32 frameLen, u16 rateix, 161 u32 frameLen, u16 rateix,
@@ -1867,12 +1848,6 @@ int ath9k_hw_fill_cap_info(struct ath_hw *ah)
1867 if (AR_SREV_9300_20_OR_LATER(ah)) 1848 if (AR_SREV_9300_20_OR_LATER(ah))
1868 ah->misc_mode |= AR_PCU_ALWAYS_PERFORM_KEYSEARCH; 1849 ah->misc_mode |= AR_PCU_ALWAYS_PERFORM_KEYSEARCH;
1869 1850
1870 pCap->low_2ghz_chan = 2312;
1871 pCap->high_2ghz_chan = 2732;
1872
1873 pCap->low_5ghz_chan = 4920;
1874 pCap->high_5ghz_chan = 6100;
1875
1876 common->crypt_caps |= ATH_CRYPT_CAP_CIPHER_AESCCM; 1851 common->crypt_caps |= ATH_CRYPT_CAP_CIPHER_AESCCM;
1877 1852
1878 if (ah->hw_version.devid != AR2427_DEVID_PCIE) 1853 if (ah->hw_version.devid != AR2427_DEVID_PCIE)
diff --git a/drivers/net/wireless/ath/ath9k/hw.h b/drivers/net/wireless/ath/ath9k/hw.h
index 031b1bf0d370..a778b66f4438 100644
--- a/drivers/net/wireless/ath/ath9k/hw.h
+++ b/drivers/net/wireless/ath/ath9k/hw.h
@@ -190,8 +190,6 @@ enum ath9k_hw_caps {
190 190
191struct ath9k_hw_capabilities { 191struct ath9k_hw_capabilities {
192 u32 hw_caps; /* ATH9K_HW_CAP_* from ath9k_hw_caps */ 192 u32 hw_caps; /* ATH9K_HW_CAP_* from ath9k_hw_caps */
193 u16 low_5ghz_chan, high_5ghz_chan;
194 u16 low_2ghz_chan, high_2ghz_chan;
195 u16 rts_aggr_limit; 193 u16 rts_aggr_limit;
196 u8 tx_chainmask; 194 u8 tx_chainmask;
197 u8 rx_chainmask; 195 u8 rx_chainmask;
@@ -900,7 +898,6 @@ bool ath9k_hw_wait(struct ath_hw *ah, u32 reg, u32 mask, u32 val, u32 timeout);
900void ath9k_hw_write_array(struct ath_hw *ah, struct ar5416IniArray *array, 898void ath9k_hw_write_array(struct ath_hw *ah, struct ar5416IniArray *array,
901 int column, unsigned int *writecnt); 899 int column, unsigned int *writecnt);
902u32 ath9k_hw_reverse_bits(u32 val, u32 n); 900u32 ath9k_hw_reverse_bits(u32 val, u32 n);
903bool ath9k_get_channel_edges(struct ath_hw *ah, u16 flags, u16 *low, u16 *high);
904u16 ath9k_hw_computetxtime(struct ath_hw *ah, 901u16 ath9k_hw_computetxtime(struct ath_hw *ah,
905 u8 phy, int kbps, 902 u8 phy, int kbps,
906 u32 frameLen, u16 rateix, bool shortPreamble); 903 u32 frameLen, u16 rateix, bool shortPreamble);