ath9k: export methods related to ACK timeout estimation
Remove static keyword and export ath9k_hw_setslottime(), ath9k_hw_set_ack_timeout() and ath9k_hw_set_cts_timeout() in hw.h. These methods will be used in ACK timeout estimation algorithm (dynack) Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi83@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
1030f9fe65
commit
8e15e09465
|
@ -935,21 +935,21 @@ static void ath9k_hw_set_sifs_time(struct ath_hw *ah, u32 us)
|
||||||
REG_WRITE(ah, AR_D_GBL_IFS_SIFS, val);
|
REG_WRITE(ah, AR_D_GBL_IFS_SIFS, val);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ath9k_hw_setslottime(struct ath_hw *ah, u32 us)
|
void ath9k_hw_setslottime(struct ath_hw *ah, u32 us)
|
||||||
{
|
{
|
||||||
u32 val = ath9k_hw_mac_to_clks(ah, us);
|
u32 val = ath9k_hw_mac_to_clks(ah, us);
|
||||||
val = min(val, (u32) 0xFFFF);
|
val = min(val, (u32) 0xFFFF);
|
||||||
REG_WRITE(ah, AR_D_GBL_IFS_SLOT, val);
|
REG_WRITE(ah, AR_D_GBL_IFS_SLOT, val);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ath9k_hw_set_ack_timeout(struct ath_hw *ah, u32 us)
|
void ath9k_hw_set_ack_timeout(struct ath_hw *ah, u32 us)
|
||||||
{
|
{
|
||||||
u32 val = ath9k_hw_mac_to_clks(ah, us);
|
u32 val = ath9k_hw_mac_to_clks(ah, us);
|
||||||
val = min(val, (u32) MS(0xFFFFFFFF, AR_TIME_OUT_ACK));
|
val = min(val, (u32) MS(0xFFFFFFFF, AR_TIME_OUT_ACK));
|
||||||
REG_RMW_FIELD(ah, AR_TIME_OUT, AR_TIME_OUT_ACK, val);
|
REG_RMW_FIELD(ah, AR_TIME_OUT, AR_TIME_OUT_ACK, val);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ath9k_hw_set_cts_timeout(struct ath_hw *ah, u32 us)
|
void ath9k_hw_set_cts_timeout(struct ath_hw *ah, u32 us)
|
||||||
{
|
{
|
||||||
u32 val = ath9k_hw_mac_to_clks(ah, us);
|
u32 val = ath9k_hw_mac_to_clks(ah, us);
|
||||||
val = min(val, (u32) MS(0xFFFFFFFF, AR_TIME_OUT_CTS));
|
val = min(val, (u32) MS(0xFFFFFFFF, AR_TIME_OUT_CTS));
|
||||||
|
|
|
@ -1080,6 +1080,10 @@ void ar9002_hw_load_ani_reg(struct ath_hw *ah, struct ath9k_channel *chan);
|
||||||
void ath9k_ani_reset(struct ath_hw *ah, bool is_scanning);
|
void ath9k_ani_reset(struct ath_hw *ah, bool is_scanning);
|
||||||
void ath9k_hw_ani_monitor(struct ath_hw *ah, struct ath9k_channel *chan);
|
void ath9k_hw_ani_monitor(struct ath_hw *ah, struct ath9k_channel *chan);
|
||||||
|
|
||||||
|
void ath9k_hw_set_ack_timeout(struct ath_hw *ah, u32 us);
|
||||||
|
void ath9k_hw_set_cts_timeout(struct ath_hw *ah, u32 us);
|
||||||
|
void ath9k_hw_setslottime(struct ath_hw *ah, u32 us);
|
||||||
|
|
||||||
#ifdef CONFIG_ATH9K_BTCOEX_SUPPORT
|
#ifdef CONFIG_ATH9K_BTCOEX_SUPPORT
|
||||||
static inline bool ath9k_hw_btcoex_is_enabled(struct ath_hw *ah)
|
static inline bool ath9k_hw_btcoex_is_enabled(struct ath_hw *ah)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue