aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSujith <Sujith.Manoharan@atheros.com>2008-10-29 00:46:52 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-11-10 15:16:05 -0500
commit50fdae2c7bcb6417997f90c3d9853a59a9ed06ce (patch)
tree75f1dab2b0759a1b4ae1e4d8646612de9db7d54a
parentf1dc56003b23d2d5bb5a756de6b1633a76c9e697 (diff)
ath9k: Remove unused function ath_get_currentCountry()
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/ath9k/core.c23
-rw-r--r--drivers/net/wireless/ath9k/core.h2
2 files changed, 0 insertions, 25 deletions
diff --git a/drivers/net/wireless/ath9k/core.c b/drivers/net/wireless/ath9k/core.c
index aa1f1fc0886a..b45953f35417 100644
--- a/drivers/net/wireless/ath9k/core.c
+++ b/drivers/net/wireless/ath9k/core.c
@@ -17,8 +17,6 @@
17#include "core.h" 17#include "core.h"
18#include "regd.h" 18#include "regd.h"
19 19
20static int ath_outdoor; /* enable outdoor use */
21
22static u32 ath_chainmask_sel_up_rssi_thres = 20static u32 ath_chainmask_sel_up_rssi_thres =
23 ATH_CHAINMASK_SEL_UP_RSSI_THRES; 21 ATH_CHAINMASK_SEL_UP_RSSI_THRES;
24static u32 ath_chainmask_sel_down_rssi_thres = 22static u32 ath_chainmask_sel_down_rssi_thres =
@@ -1349,27 +1347,6 @@ void ath_update_txpow(struct ath_softc *sc)
1349 } 1347 }
1350} 1348}
1351 1349
1352/* Return the current country and domain information */
1353void ath_get_currentCountry(struct ath_softc *sc,
1354 struct ath9k_country_entry *ctry)
1355{
1356 ath9k_regd_get_current_country(sc->sc_ah, ctry);
1357
1358 /* If HAL not specific yet, since it is band dependent,
1359 * use the one we passed in. */
1360 if (ctry->countryCode == CTRY_DEFAULT) {
1361 ctry->iso[0] = 0;
1362 ctry->iso[1] = 0;
1363 } else if (ctry->iso[0] && ctry->iso[1]) {
1364 if (!ctry->iso[2]) {
1365 if (ath_outdoor)
1366 ctry->iso[2] = 'O';
1367 else
1368 ctry->iso[2] = 'I';
1369 }
1370 }
1371}
1372
1373/**************************/ 1350/**************************/
1374/* Slow Antenna Diversity */ 1351/* Slow Antenna Diversity */
1375/**************************/ 1352/**************************/
diff --git a/drivers/net/wireless/ath9k/core.h b/drivers/net/wireless/ath9k/core.h
index c03acf7a4900..fdaecb1e326b 100644
--- a/drivers/net/wireless/ath9k/core.h
+++ b/drivers/net/wireless/ath9k/core.h
@@ -1018,8 +1018,6 @@ int ath_get_mac80211_qnum(u32 queue, struct ath_softc *sc);
1018void ath_setslottime(struct ath_softc *sc); 1018void ath_setslottime(struct ath_softc *sc);
1019void ath_update_txpow(struct ath_softc *sc); 1019void ath_update_txpow(struct ath_softc *sc);
1020int ath_cabq_update(struct ath_softc *); 1020int ath_cabq_update(struct ath_softc *);
1021void ath_get_currentCountry(struct ath_softc *sc,
1022 struct ath9k_country_entry *ctry);
1023u64 ath_extend_tsf(struct ath_softc *sc, u32 rstamp); 1021u64 ath_extend_tsf(struct ath_softc *sc, u32 rstamp);
1024 1022
1025#endif /* CORE_H */ 1023#endif /* CORE_H */