提交 50fdae2c 编写于 作者: S Sujith 提交者: John W. Linville

ath9k: Remove unused function ath_get_currentCountry()

Signed-off-by: NSujith <Sujith.Manoharan@atheros.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 f1dc5600
...@@ -17,8 +17,6 @@ ...@@ -17,8 +17,6 @@
#include "core.h" #include "core.h"
#include "regd.h" #include "regd.h"
static int ath_outdoor; /* enable outdoor use */
static u32 ath_chainmask_sel_up_rssi_thres = static u32 ath_chainmask_sel_up_rssi_thres =
ATH_CHAINMASK_SEL_UP_RSSI_THRES; ATH_CHAINMASK_SEL_UP_RSSI_THRES;
static u32 ath_chainmask_sel_down_rssi_thres = static u32 ath_chainmask_sel_down_rssi_thres =
...@@ -1349,27 +1347,6 @@ void ath_update_txpow(struct ath_softc *sc) ...@@ -1349,27 +1347,6 @@ void ath_update_txpow(struct ath_softc *sc)
} }
} }
/* Return the current country and domain information */
void ath_get_currentCountry(struct ath_softc *sc,
struct ath9k_country_entry *ctry)
{
ath9k_regd_get_current_country(sc->sc_ah, ctry);
/* If HAL not specific yet, since it is band dependent,
* use the one we passed in. */
if (ctry->countryCode == CTRY_DEFAULT) {
ctry->iso[0] = 0;
ctry->iso[1] = 0;
} else if (ctry->iso[0] && ctry->iso[1]) {
if (!ctry->iso[2]) {
if (ath_outdoor)
ctry->iso[2] = 'O';
else
ctry->iso[2] = 'I';
}
}
}
/**************************/ /**************************/
/* Slow Antenna Diversity */ /* Slow Antenna Diversity */
/**************************/ /**************************/
......
...@@ -1018,8 +1018,6 @@ int ath_get_mac80211_qnum(u32 queue, struct ath_softc *sc); ...@@ -1018,8 +1018,6 @@ int ath_get_mac80211_qnum(u32 queue, struct ath_softc *sc);
void ath_setslottime(struct ath_softc *sc); void ath_setslottime(struct ath_softc *sc);
void ath_update_txpow(struct ath_softc *sc); void ath_update_txpow(struct ath_softc *sc);
int ath_cabq_update(struct ath_softc *); int ath_cabq_update(struct ath_softc *);
void ath_get_currentCountry(struct ath_softc *sc,
struct ath9k_country_entry *ctry);
u64 ath_extend_tsf(struct ath_softc *sc, u32 rstamp); u64 ath_extend_tsf(struct ath_softc *sc, u32 rstamp);
#endif /* CORE_H */ #endif /* CORE_H */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册