Commit 05b60d4e authored by Mohammed Shafi Shajakhan's avatar Mohammed Shafi Shajakhan Committed by John W. Linville

ath9k_hw: make use of the gain_table_entry macro

Signed-off-by: default avatarMohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent f68e20f0
...@@ -236,7 +236,7 @@ static void ar9003_paprd_get_gain_table(struct ath_hw *ah) ...@@ -236,7 +236,7 @@ static void ar9003_paprd_get_gain_table(struct ath_hw *ah)
memset(entry, 0, sizeof(ah->paprd_gain_table_entries)); memset(entry, 0, sizeof(ah->paprd_gain_table_entries));
memset(index, 0, sizeof(ah->paprd_gain_table_index)); memset(index, 0, sizeof(ah->paprd_gain_table_index));
for (i = 0; i < 32; i++) { for (i = 0; i < PAPRD_GAIN_TABLE_ENTRIES; i++) {
entry[i] = REG_READ(ah, reg); entry[i] = REG_READ(ah, reg);
index[i] = (entry[i] >> 24) & 0xff; index[i] = (entry[i] >> 24) & 0xff;
reg += 4; reg += 4;
...@@ -741,7 +741,7 @@ int ar9003_paprd_setup_gain_table(struct ath_hw *ah, int chain) ...@@ -741,7 +741,7 @@ int ar9003_paprd_setup_gain_table(struct ath_hw *ah, int chain)
desired_gain = ar9003_get_desired_gain(ah, chain, train_power); desired_gain = ar9003_get_desired_gain(ah, chain, train_power);
gain_index = 0; gain_index = 0;
for (i = 0; i < 32; i++) { for (i = 0; i < PAPRD_GAIN_TABLE_ENTRIES; i++) {
if (ah->paprd_gain_table_index[i] >= desired_gain) if (ah->paprd_gain_table_index[i] >= desired_gain)
break; break;
gain_index++; gain_index++;
......
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