Commit 8e15e094 authored by Lorenzo Bianconi's avatar Lorenzo Bianconi Committed by John W. Linville

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: default avatarLorenzo Bianconi <lorenzo.bianconi83@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 1030f9fe
...@@ -935,21 +935,21 @@ static void ath9k_hw_set_sifs_time(struct ath_hw *ah, u32 us) ...@@ -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); ...@@ -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)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment