hw.c (f84f234c6417e3d60b1cfeaf9d16c3bd1c8fe2a5) | hw.c (82b2d334314c387ebd857b88a3d889c9a2cfec4a) |
---|---|
1/* 2 * Copyright (c) 2008-2011 Atheros Communications Inc. 3 * 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 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES --- 1465 unchanged lines hidden (view full) --- 1474 struct ath_common *common = ath9k_hw_common(ah); 1475 u32 saveLedState; 1476 struct ath9k_channel *curchan = ah->curchan; 1477 u32 saveDefAntenna; 1478 u32 macStaId1; 1479 u64 tsf = 0; 1480 int i, r; 1481 | 1/* 2 * Copyright (c) 2008-2011 Atheros Communications Inc. 3 * 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 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES --- 1465 unchanged lines hidden (view full) --- 1474 struct ath_common *common = ath9k_hw_common(ah); 1475 u32 saveLedState; 1476 struct ath9k_channel *curchan = ah->curchan; 1477 u32 saveDefAntenna; 1478 u32 macStaId1; 1479 u64 tsf = 0; 1480 int i, r; 1481 |
1482 ah->txchainmask = common->tx_chainmask; 1483 ah->rxchainmask = common->rx_chainmask; 1484 | |
1485 if (!ath9k_hw_setpower(ah, ATH9K_PM_AWAKE)) 1486 return -EIO; 1487 1488 if (curchan && !ah->chip_fullsleep) 1489 ath9k_hw_getnf(ah, curchan); 1490 1491 ah->caldata = caldata; 1492 if (caldata && --- 597 unchanged lines hidden (view full) --- 2090 else if (AR_SREV_9100(ah)) 2091 pCap->rx_chainmask = 0x7; 2092 else 2093 /* Use rx_chainmask from EEPROM. */ 2094 pCap->rx_chainmask = ah->eep_ops->get_eeprom(ah, EEP_RX_MASK); 2095 2096 pCap->tx_chainmask = fixup_chainmask(chip_chainmask, pCap->tx_chainmask); 2097 pCap->rx_chainmask = fixup_chainmask(chip_chainmask, pCap->rx_chainmask); | 1482 if (!ath9k_hw_setpower(ah, ATH9K_PM_AWAKE)) 1483 return -EIO; 1484 1485 if (curchan && !ah->chip_fullsleep) 1486 ath9k_hw_getnf(ah, curchan); 1487 1488 ah->caldata = caldata; 1489 if (caldata && --- 597 unchanged lines hidden (view full) --- 2087 else if (AR_SREV_9100(ah)) 2088 pCap->rx_chainmask = 0x7; 2089 else 2090 /* Use rx_chainmask from EEPROM. */ 2091 pCap->rx_chainmask = ah->eep_ops->get_eeprom(ah, EEP_RX_MASK); 2092 2093 pCap->tx_chainmask = fixup_chainmask(chip_chainmask, pCap->tx_chainmask); 2094 pCap->rx_chainmask = fixup_chainmask(chip_chainmask, pCap->rx_chainmask); |
2095 ah->txchainmask = pCap->tx_chainmask; 2096 ah->rxchainmask = pCap->rx_chainmask; |
|
2098 2099 ah->misc_mode |= AR_PCU_MIC_NEW_LOC_ENA; 2100 2101 /* enable key search for every frame in an aggregate */ 2102 if (AR_SREV_9300_20_OR_LATER(ah)) 2103 ah->misc_mode |= AR_PCU_ALWAYS_PERFORM_KEYSEARCH; 2104 2105 common->crypt_caps |= ATH_CRYPT_CAP_CIPHER_AESCCM; --- 734 unchanged lines hidden --- | 2097 2098 ah->misc_mode |= AR_PCU_MIC_NEW_LOC_ENA; 2099 2100 /* enable key search for every frame in an aggregate */ 2101 if (AR_SREV_9300_20_OR_LATER(ah)) 2102 ah->misc_mode |= AR_PCU_ALWAYS_PERFORM_KEYSEARCH; 2103 2104 common->crypt_caps |= ATH_CRYPT_CAP_CIPHER_AESCCM; --- 734 unchanged lines hidden --- |