| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2008-2010 Atheros Communications Inc. | 2 * Copyright (c) 2008-2010 Atheros Communications Inc. |
| 3 * | 3 * |
| 4 * Permission to use, copy, modify, and/or distribute this software for any | 4 * Permission to use, copy, modify, and/or distribute this software for any |
| 5 * purpose with or without fee is hereby granted, provided that the above | 5 * purpose with or without fee is hereby granted, provided that the above |
| 6 * copyright notice and this permission notice appear in all copies. | 6 * copyright notice and this permission notice appear in all copies. |
| 7 * | 7 * |
| 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
| 9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | 9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
| 10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | 10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
| (...skipping 1266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1277 if (AR_SREV_9100(ah) || | 1277 if (AR_SREV_9100(ah) || |
| 1278 (AR_SREV_9280(ah) && ah->eep_ops->get_eeprom(ah, EEP_OL_PWRCTRL))) | 1278 (AR_SREV_9280(ah) && ah->eep_ops->get_eeprom(ah, EEP_OL_PWRCTRL))) |
| 1279 tsf = ath9k_hw_gettsf64(ah); | 1279 tsf = ath9k_hw_gettsf64(ah); |
| 1280 | 1280 |
| 1281 saveLedState = REG_READ(ah, AR_CFG_LED) & | 1281 saveLedState = REG_READ(ah, AR_CFG_LED) & |
| 1282 (AR_CFG_LED_ASSOC_CTL | AR_CFG_LED_MODE_SEL | | 1282 (AR_CFG_LED_ASSOC_CTL | AR_CFG_LED_MODE_SEL | |
| 1283 AR_CFG_LED_BLINK_THRESH_SEL | AR_CFG_LED_BLINK_SLOW); | 1283 AR_CFG_LED_BLINK_THRESH_SEL | AR_CFG_LED_BLINK_SLOW); |
| 1284 | 1284 |
| 1285 ath9k_hw_mark_phy_inactive(ah); | 1285 ath9k_hw_mark_phy_inactive(ah); |
| 1286 | 1286 |
| 1287 ah->paprd_table_write_done = false; |
| 1288 |
| 1287 /* Only required on the first reset */ | 1289 /* Only required on the first reset */ |
| 1288 if (AR_SREV_9271(ah) && ah->htc_reset_init) { | 1290 if (AR_SREV_9271(ah) && ah->htc_reset_init) { |
| 1289 REG_WRITE(ah, | 1291 REG_WRITE(ah, |
| 1290 AR9271_RESET_POWER_DOWN_CONTROL, | 1292 AR9271_RESET_POWER_DOWN_CONTROL, |
| 1291 AR9271_RADIO_RF_RST); | 1293 AR9271_RADIO_RF_RST); |
| 1292 udelay(50); | 1294 udelay(50); |
| 1293 } | 1295 } |
| 1294 | 1296 |
| 1295 if (!ath9k_hw_chip_reset(ah, chan)) { | 1297 if (!ath9k_hw_chip_reset(ah, chan)) { |
| 1296 ath_print(common, ATH_DBG_FATAL, "Chip reset failed\n"); | 1298 ath_print(common, ATH_DBG_FATAL, "Chip reset failed\n"); |
| (...skipping 1577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2874 ath9k_hw_mac_bb_name(ah->hw_version.macVersion), | 2876 ath9k_hw_mac_bb_name(ah->hw_version.macVersion), |
| 2875 ah->hw_version.macRev, | 2877 ah->hw_version.macRev, |
| 2876 ath9k_hw_rf_name((ah->hw_version.analog5GhzRev & | 2878 ath9k_hw_rf_name((ah->hw_version.analog5GhzRev & |
| 2877 AR_RADIO_SREV_MAJOR)), | 2879 AR_RADIO_SREV_MAJOR)), |
| 2878 ah->hw_version.phyRev); | 2880 ah->hw_version.phyRev); |
| 2879 } | 2881 } |
| 2880 | 2882 |
| 2881 hw_name[used] = '\0'; | 2883 hw_name[used] = '\0'; |
| 2882 } | 2884 } |
| 2883 EXPORT_SYMBOL(ath9k_hw_name); | 2885 EXPORT_SYMBOL(ath9k_hw_name); |
| OLD | NEW |