diff options
author | Wenli Looi <wlooi@ucalgary.ca> | 2022-03-21 00:30:10 +0100 |
---|---|---|
committer | Kalle Valo <quic_kvalo@quicinc.com> | 2022-03-25 11:33:49 +0100 |
commit | 673424ce0e77450c24b300153387e271f470fc7c (patch) | |
tree | 9e39c1e0aa88920e8f15c746eee377dcea7b7755 /drivers/net/wireless/ath/ath9k/ar9003_eeprom.h | |
parent | ath9k: refactor ar9003_hw_spur_mitigate_ofdm (diff) | |
download | linux-673424ce0e77450c24b300153387e271f470fc7c.tar.xz linux-673424ce0e77450c24b300153387e271f470fc7c.zip |
ath9k: add functions to get paprd rate mask
This removes some code duplication with le32_to_cpu. This may also be
required for QCN550x support, to provide an abstraction over the
underlying EEPROM format.
Signed-off-by: Wenli Looi <wlooi@ucalgary.ca>
Acked-by: Toke Høiland-Jørgensen <toke@toke.dk>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20220320233010.123106-7-wlooi@ucalgary.ca
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ar9003_eeprom.h')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ar9003_eeprom.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_eeprom.h b/drivers/net/wireless/ath/ath9k/ar9003_eeprom.h index e8fda54acfe3..f8ae20318302 100644 --- a/drivers/net/wireless/ath/ath9k/ar9003_eeprom.h +++ b/drivers/net/wireless/ath/ath9k/ar9003_eeprom.h @@ -363,6 +363,8 @@ u32 ar9003_hw_ant_ctrl_common_2_get(struct ath_hw *ah, bool is2ghz); u8 *ar9003_get_spur_chan_ptr(struct ath_hw *ah, bool is_2ghz); +u32 ar9003_get_paprd_rate_mask_ht20(struct ath_hw *ah, bool is2ghz); +u32 ar9003_get_paprd_rate_mask_ht40(struct ath_hw *ah, bool is2ghz); unsigned int ar9003_get_paprd_scale_factor(struct ath_hw *ah, struct ath9k_channel *chan); |