提交 6fd4bd26 编写于 作者: M Michal Kazior 提交者: Kalle Valo

ath10k: use hw rate definitions for fixed rate

Using raw values is discouraged. Having
defines/enums is preferred.
Signed-off-by: NMichal Kazior <michal.kazior@tieto.com>
Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
上级 6aa4cf1c
...@@ -5198,20 +5198,18 @@ static int ath10k_get_survey(struct ieee80211_hw *hw, int idx, ...@@ -5198,20 +5198,18 @@ static int ath10k_get_survey(struct ieee80211_hw *hw, int idx,
/* Helper table for legacy fixed_rate/bitrate_mask */ /* Helper table for legacy fixed_rate/bitrate_mask */
static const u8 cck_ofdm_rate[] = { static const u8 cck_ofdm_rate[] = {
/* CCK */ ATH10K_HW_RATE_CCK_LP_1M,
3, /* 1Mbps */ ATH10K_HW_RATE_CCK_LP_2M,
2, /* 2Mbps */ ATH10K_HW_RATE_CCK_LP_5_5M,
1, /* 5.5Mbps */ ATH10K_HW_RATE_CCK_LP_11M,
0, /* 11Mbps */ ATH10K_HW_RATE_OFDM_6M,
/* OFDM */ ATH10K_HW_RATE_OFDM_9M,
3, /* 6Mbps */ ATH10K_HW_RATE_OFDM_12M,
7, /* 9Mbps */ ATH10K_HW_RATE_OFDM_18M,
2, /* 12Mbps */ ATH10K_HW_RATE_OFDM_24M,
6, /* 18Mbps */ ATH10K_HW_RATE_OFDM_36M,
1, /* 24Mbps */ ATH10K_HW_RATE_OFDM_48M,
5, /* 36Mbps */ ATH10K_HW_RATE_OFDM_54M,
0, /* 48Mbps */
4, /* 54Mbps */
}; };
/* Check if only one bit set */ /* Check if only one bit set */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册