aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>2011-06-23 10:44:29 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-06-27 15:09:40 -0400
commit05b60d4e3796c25ae1c78b10d5676ab27062d9b4 (patch)
tree68b22de4dafb3253379dbd0f9419cd6114be7fb8
parentf68e20f0f8bc57dc91d132eaa66956e9ba5aafcf (diff)
ath9k_hw: make use of the gain_table_entry macro
Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/ath/ath9k/ar9003_paprd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_paprd.c b/drivers/net/wireless/ath/ath9k/ar9003_paprd.c
index 6e9e892e5281..de1972307b0a 100644
--- a/drivers/net/wireless/ath/ath9k/ar9003_paprd.c
+++ b/drivers/net/wireless/ath/ath9k/ar9003_paprd.c
@@ -236,7 +236,7 @@ static void ar9003_paprd_get_gain_table(struct ath_hw *ah)
236 memset(entry, 0, sizeof(ah->paprd_gain_table_entries)); 236 memset(entry, 0, sizeof(ah->paprd_gain_table_entries));
237 memset(index, 0, sizeof(ah->paprd_gain_table_index)); 237 memset(index, 0, sizeof(ah->paprd_gain_table_index));
238 238
239 for (i = 0; i < 32; i++) { 239 for (i = 0; i < PAPRD_GAIN_TABLE_ENTRIES; i++) {
240 entry[i] = REG_READ(ah, reg); 240 entry[i] = REG_READ(ah, reg);
241 index[i] = (entry[i] >> 24) & 0xff; 241 index[i] = (entry[i] >> 24) & 0xff;
242 reg += 4; 242 reg += 4;
@@ -741,7 +741,7 @@ int ar9003_paprd_setup_gain_table(struct ath_hw *ah, int chain)
741 desired_gain = ar9003_get_desired_gain(ah, chain, train_power); 741 desired_gain = ar9003_get_desired_gain(ah, chain, train_power);
742 742
743 gain_index = 0; 743 gain_index = 0;
744 for (i = 0; i < 32; i++) { 744 for (i = 0; i < PAPRD_GAIN_TABLE_ENTRIES; i++) {
745 if (ah->paprd_gain_table_index[i] >= desired_gain) 745 if (ah->paprd_gain_table_index[i] >= desired_gain)
746 break; 746 break;
747 gain_index++; 747 gain_index++;