aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/eeprom_def.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/eeprom_def.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/eeprom_def.c53
1 files changed, 26 insertions, 27 deletions
diff --git a/drivers/net/wireless/ath/ath9k/eeprom_def.c b/drivers/net/wireless/ath/ath9k/eeprom_def.c
index 864a877bc05..c2b4bba7410 100644
--- a/drivers/net/wireless/ath/ath9k/eeprom_def.c
+++ b/drivers/net/wireless/ath/ath9k/eeprom_def.c
@@ -122,8 +122,8 @@ static int ath9k_hw_def_check_eeprom(struct ath_hw *ah)
122 } 122 }
123 123
124 if (!ath9k_hw_use_flash(ah)) { 124 if (!ath9k_hw_use_flash(ah)) {
125 ath_print(common, ATH_DBG_EEPROM, 125 ath_dbg(common, ATH_DBG_EEPROM,
126 "Read Magic = 0x%04X\n", magic); 126 "Read Magic = 0x%04X\n", magic);
127 127
128 if (magic != AR5416_EEPROM_MAGIC) { 128 if (magic != AR5416_EEPROM_MAGIC) {
129 magic2 = swab16(magic); 129 magic2 = swab16(magic);
@@ -146,8 +146,8 @@ static int ath9k_hw_def_check_eeprom(struct ath_hw *ah)
146 } 146 }
147 } 147 }
148 148
149 ath_print(common, ATH_DBG_EEPROM, "need_swap = %s.\n", 149 ath_dbg(common, ATH_DBG_EEPROM, "need_swap = %s.\n",
150 need_swap ? "True" : "False"); 150 need_swap ? "True" : "False");
151 151
152 if (need_swap) 152 if (need_swap)
153 el = swab16(ah->eeprom.def.baseEepHeader.length); 153 el = swab16(ah->eeprom.def.baseEepHeader.length);
@@ -168,8 +168,8 @@ static int ath9k_hw_def_check_eeprom(struct ath_hw *ah)
168 u32 integer, j; 168 u32 integer, j;
169 u16 word; 169 u16 word;
170 170
171 ath_print(common, ATH_DBG_EEPROM, 171 ath_dbg(common, ATH_DBG_EEPROM,
172 "EEPROM Endianness is not native.. Changing.\n"); 172 "EEPROM Endianness is not native.. Changing.\n");
173 173
174 word = swab16(eep->baseEepHeader.length); 174 word = swab16(eep->baseEepHeader.length);
175 eep->baseEepHeader.length = word; 175 eep->baseEepHeader.length = word;
@@ -964,20 +964,19 @@ static void ath9k_hw_set_def_power_cal_table(struct ath_hw *ah,
964 ((pdadcValues[4 * j + 3] & 0xFF) << 24); 964 ((pdadcValues[4 * j + 3] & 0xFF) << 24);
965 REG_WRITE(ah, regOffset, reg32); 965 REG_WRITE(ah, regOffset, reg32);
966 966
967 ath_print(common, ATH_DBG_EEPROM, 967 ath_dbg(common, ATH_DBG_EEPROM,
968 "PDADC (%d,%4x): %4.4x %8.8x\n", 968 "PDADC (%d,%4x): %4.4x %8.8x\n",
969 i, regChainOffset, regOffset, 969 i, regChainOffset, regOffset,
970 reg32); 970 reg32);
971 ath_print(common, ATH_DBG_EEPROM, 971 ath_dbg(common, ATH_DBG_EEPROM,
972 "PDADC: Chain %d | PDADC %3d " 972 "PDADC: Chain %d | PDADC %3d "
973 "Value %3d | PDADC %3d Value %3d | " 973 "Value %3d | PDADC %3d Value %3d | "
974 "PDADC %3d Value %3d | PDADC %3d " 974 "PDADC %3d Value %3d | PDADC %3d "
975 "Value %3d |\n", 975 "Value %3d |\n",
976 i, 4 * j, pdadcValues[4 * j], 976 i, 4 * j, pdadcValues[4 * j],
977 4 * j + 1, pdadcValues[4 * j + 1], 977 4 * j + 1, pdadcValues[4 * j + 1],
978 4 * j + 2, pdadcValues[4 * j + 2], 978 4 * j + 2, pdadcValues[4 * j + 2],
979 4 * j + 3, 979 4 * j + 3, pdadcValues[4 * j + 3]);
980 pdadcValues[4 * j + 3]);
981 980
982 regOffset += 4; 981 regOffset += 4;
983 } 982 }
@@ -1317,8 +1316,8 @@ static void ath9k_hw_def_set_txpower(struct ath_hw *ah,
1317 regulatory->max_power_level += INCREASE_MAXPOW_BY_THREE_CHAIN; 1316 regulatory->max_power_level += INCREASE_MAXPOW_BY_THREE_CHAIN;
1318 break; 1317 break;
1319 default: 1318 default:
1320 ath_print(ath9k_hw_common(ah), ATH_DBG_EEPROM, 1319 ath_dbg(ath9k_hw_common(ah), ATH_DBG_EEPROM,
1321 "Invalid chainmask configuration\n"); 1320 "Invalid chainmask configuration\n");
1322 break; 1321 break;
1323 } 1322 }
1324 1323
@@ -1459,17 +1458,17 @@ static u16 ath9k_hw_def_get_spur_channel(struct ath_hw *ah, u16 i, bool is2GHz)
1459 1458
1460 u16 spur_val = AR_NO_SPUR; 1459 u16 spur_val = AR_NO_SPUR;
1461 1460
1462 ath_print(common, ATH_DBG_ANI, 1461 ath_dbg(common, ATH_DBG_ANI,
1463 "Getting spur idx %d is2Ghz. %d val %x\n", 1462 "Getting spur idx:%d is2Ghz:%d val:%x\n",
1464 i, is2GHz, ah->config.spurchans[i][is2GHz]); 1463 i, is2GHz, ah->config.spurchans[i][is2GHz]);
1465 1464
1466 switch (ah->config.spurmode) { 1465 switch (ah->config.spurmode) {
1467 case SPUR_DISABLE: 1466 case SPUR_DISABLE:
1468 break; 1467 break;
1469 case SPUR_ENABLE_IOCTL: 1468 case SPUR_ENABLE_IOCTL:
1470 spur_val = ah->config.spurchans[i][is2GHz]; 1469 spur_val = ah->config.spurchans[i][is2GHz];
1471 ath_print(common, ATH_DBG_ANI, 1470 ath_dbg(common, ATH_DBG_ANI,
1472 "Getting spur val from new loc. %d\n", spur_val); 1471 "Getting spur val from new loc. %d\n", spur_val);
1473 break; 1472 break;
1474 case SPUR_ENABLE_EEPROM: 1473 case SPUR_ENABLE_EEPROM:
1475 spur_val = EEP_DEF_SPURCHAN; 1474 spur_val = EEP_DEF_SPURCHAN;