ar5416_attach.c revision 185377
1/* 2 * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting 3 * Copyright (c) 2002-2008 Atheros Communications, Inc. 4 * 5 * Permission to use, copy, modify, and/or distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * 9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 * 17 * $Id: ar5416_attach.c,v 1.19 2008/11/10 04:08:04 sam Exp $ 18 */ 19#include "opt_ah.h" 20 21#ifdef AH_SUPPORT_AR5416 22 23#if !defined(AH_SUPPORT_2133) 24#error "No 5416 RF support defined" 25#endif 26 27#include "ah.h" 28#include "ah_internal.h" 29#include "ah_devid.h" 30 31#include "ar5416/ar5416.h" 32#include "ar5416/ar5416reg.h" 33#include "ar5416/ar5416phy.h" 34 35#include "ar5416/ar5416.ini" 36 37static void 38ar5416AniSetup(struct ath_hal *ah) 39{ 40 static const struct ar5212AniParams aniparams = { 41 .maxNoiseImmunityLevel = 4, /* levels 0..4 */ 42 .totalSizeDesired = { -55, -55, -55, -55, -62 }, 43 .coarseHigh = { -14, -14, -14, -14, -12 }, 44 .coarseLow = { -64, -64, -64, -64, -70 }, 45 .firpwr = { -78, -78, -78, -78, -80 }, 46 .maxSpurImmunityLevel = 2, 47 .cycPwrThr1 = { 2, 4, 6 }, 48 .maxFirstepLevel = 2, /* levels 0..2 */ 49 .firstep = { 0, 4, 8 }, 50 .ofdmTrigHigh = 500, 51 .ofdmTrigLow = 200, 52 .cckTrigHigh = 200, 53 .cckTrigLow = 100, 54 .rssiThrHigh = 40, 55 .rssiThrLow = 7, 56 .period = 100, 57 }; 58 /* NB: ANI is not enabled yet */ 59 ar5212AniAttach(ah, &aniparams, &aniparams, AH_FALSE); 60} 61 62/* 63 * Attach for an AR5416 part. 64 */ 65void 66ar5416InitState(struct ath_hal_5416 *ahp5416, uint16_t devid, HAL_SOFTC sc, 67 HAL_BUS_TAG st, HAL_BUS_HANDLE sh, HAL_STATUS *status) 68{ 69 struct ath_hal_5212 *ahp; 70 struct ath_hal *ah; 71 72 ahp = &ahp5416->ah_5212; 73 ar5212InitState(ahp, devid, sc, st, sh, status); 74 ah = &ahp->ah_priv.h; 75 76 /* override 5212 methods for our needs */ 77 ah->ah_magic = AR5416_MAGIC; 78 ah->ah_getRateTable = ar5416GetRateTable; 79 ah->ah_detach = ar5416Detach; 80 81 /* Reset functions */ 82 ah->ah_reset = ar5416Reset; 83 ah->ah_phyDisable = ar5416PhyDisable; 84 ah->ah_disable = ar5416Disable; 85 ah->ah_perCalibration = ar5416PerCalibration; 86 ah->ah_setTxPowerLimit = ar5416SetTxPowerLimit; 87 88 /* Transmit functions */ 89 ah->ah_stopTxDma = ar5416StopTxDma; 90 ah->ah_setupTxDesc = ar5416SetupTxDesc; 91 ah->ah_setupXTxDesc = ar5416SetupXTxDesc; 92 ah->ah_fillTxDesc = ar5416FillTxDesc; 93 ah->ah_procTxDesc = ar5416ProcTxDesc; 94 95 /* Receive Functions */ 96 ah->ah_startPcuReceive = ar5416StartPcuReceive; 97 ah->ah_stopPcuReceive = ar5416StopPcuReceive; 98 ah->ah_setupRxDesc = ar5416SetupRxDesc; 99 ah->ah_procRxDesc = ar5416ProcRxDesc; 100 101 /* Misc Functions */ 102 ah->ah_getDiagState = ar5416GetDiagState; 103 ah->ah_setLedState = ar5416SetLedState; 104 ah->ah_gpioCfgOutput = ar5416GpioCfgOutput; 105 ah->ah_gpioCfgInput = ar5416GpioCfgInput; 106 ah->ah_gpioGet = ar5416GpioGet; 107 ah->ah_gpioSet = ar5416GpioSet; 108 ah->ah_gpioSetIntr = ar5416GpioSetIntr; 109 ah->ah_resetTsf = ar5416ResetTsf; 110 ah->ah_getRfGain = ar5416GetRfgain; 111 ah->ah_setAntennaSwitch = ar5416SetAntennaSwitch; 112 ah->ah_setDecompMask = ar5416SetDecompMask; 113 ah->ah_setCoverageClass = ar5416SetCoverageClass; 114 115 ah->ah_resetKeyCacheEntry = ar5416ResetKeyCacheEntry; 116 ah->ah_setKeyCacheEntry = ar5416SetKeyCacheEntry; 117 118 /* Power Management Functions */ 119 ah->ah_setPowerMode = ar5416SetPowerMode; 120 121 /* Beacon Management Functions */ 122 ah->ah_setBeaconTimers = ar5416SetBeaconTimers; 123 ah->ah_beaconInit = ar5416BeaconInit; 124 ah->ah_setStationBeaconTimers = ar5416SetStaBeaconTimers; 125 ah->ah_resetStationBeaconTimers = ar5416ResetStaBeaconTimers; 126 127 /* XXX 802.11n Functions */ 128#if 0 129 ah->ah_chainTxDesc = ar5416ChainTxDesc; 130 ah->ah_setupFirstTxDesc = ar5416SetupFirstTxDesc; 131 ah->ah_setupLastTxDesc = ar5416SetupLastTxDesc; 132 ah->ah_set11nRateScenario = ar5416Set11nRateScenario; 133 ah->ah_set11nAggrMiddle = ar5416Set11nAggrMiddle; 134 ah->ah_clr11nAggr = ar5416Clr11nAggr; 135 ah->ah_set11nBurstDuration = ar5416Set11nBurstDuration; 136 ah->ah_get11nExtBusy = ar5416Get11nExtBusy; 137 ah->ah_set11nMac2040 = ar5416Set11nMac2040; 138 ah->ah_get11nRxClear = ar5416Get11nRxClear; 139 ah->ah_set11nRxClear = ar5416Set11nRxClear; 140#endif 141 142 /* Interrupt functions */ 143 ah->ah_isInterruptPending = ar5416IsInterruptPending; 144 ah->ah_getPendingInterrupts = ar5416GetPendingInterrupts; 145 ah->ah_setInterrupts = ar5416SetInterrupts; 146 147 ahp->ah_priv.ah_getWirelessModes= ar5416GetWirelessModes; 148 ahp->ah_priv.ah_eepromRead = ar5416EepromRead; 149#ifdef AH_SUPPORT_WRITE_EEPROM 150 ahp->ah_priv.ah_eepromWrite = ar5416EepromWrite; 151#endif 152 ahp->ah_priv.ah_gpioCfgOutput = ar5416GpioCfgOutput; 153 ahp->ah_priv.ah_gpioCfgInput = ar5416GpioCfgInput; 154 ahp->ah_priv.ah_gpioGet = ar5416GpioGet; 155 ahp->ah_priv.ah_gpioSet = ar5416GpioSet; 156 ahp->ah_priv.ah_gpioSetIntr = ar5416GpioSetIntr; 157 ahp->ah_priv.ah_getChipPowerLimits = ar5416GetChipPowerLimits; 158 159 /* 160 * XXX - Do we need a board specific chain mask? 161 * Start by setting all Owl devices to 2x2 162 */ 163 AH5416(ah)->ah_rx_chainmask = AR5416_DEFAULT_RXCHAINMASK; 164 AH5416(ah)->ah_tx_chainmask = AR5416_DEFAULT_TXCHAINMASK; 165 AH5416(ah)->ah_clksel = 0; /* XXX */ 166 /* NB: ah_keytype is initialized to zero which is ok */ 167#if 0 168 ah->ah_descinfo.rxctl_numwords = RXCTL_NUMWORDS(ah); 169 ah->ah_descinfo.rxctl_offset = RXCTL_OFFSET(ah); 170 ah->ah_descinfo.rxstatus_numwords = RXSTATUS_NUMWORDS(ah); 171 ah->ah_descinfo.rxstatus_offset = RXSTATUS_OFFSET(ah); 172 173 ah->ah_descinfo.txctl_numwords = TXCTL_NUMWORDS(ah); 174 ah->ah_descinfo.txctl_offset = TXCTL_OFFSET(ah); 175 ah->ah_descinfo.txstatus_numwords = TXSTATUS_NUMWORDS(ah); 176 ah->ah_descinfo.txstatus_offset = TXSTATUS_OFFSET(ah); 177#endif 178} 179 180/* 181 * Attach for an AR5416 part. 182 */ 183struct ath_hal * 184ar5416Attach(uint16_t devid, HAL_SOFTC sc, 185 HAL_BUS_TAG st, HAL_BUS_HANDLE sh, HAL_STATUS *status) 186{ 187 struct ath_hal_5416 *ahp5416; 188 struct ath_hal_5212 *ahp; 189 struct ath_hal *ah; 190 uint32_t val; 191 HAL_STATUS ecode; 192 HAL_BOOL rfStatus; 193 194 HALDEBUG(AH_NULL, HAL_DEBUG_ATTACH, "%s: sc %p st %p sh %p\n", 195 __func__, sc, (void*) st, (void*) sh); 196 197 /* NB: memory is returned zero'd */ 198 ahp5416 = ath_hal_malloc(sizeof (struct ath_hal_5416) + 199 /* extra space for Owl 2.1/2.2 WAR */ 200 sizeof(ar5416Addac) 201 ); 202 if (ahp5416 == AH_NULL) { 203 HALDEBUG(AH_NULL, HAL_DEBUG_ANY, 204 "%s: cannot allocate memory for state block\n", __func__); 205 *status = HAL_ENOMEM; 206 return AH_NULL; 207 } 208 ar5416InitState(ahp5416, devid, sc, st, sh, status); 209 ahp = &ahp5416->ah_5212; 210 ah = &ahp->ah_priv.h; 211 212 if (!ar5416SetResetReg(ah, HAL_RESET_POWER_ON)) { 213 /* reset chip */ 214 HALDEBUG(ah, HAL_DEBUG_ANY, "%s: couldn't reset chip\n", __func__); 215 ecode = HAL_EIO; 216 goto bad; 217 } 218 219 if (!ar5416SetPowerMode(ah, HAL_PM_AWAKE, AH_TRUE)) { 220 HALDEBUG(ah, HAL_DEBUG_ANY, "%s: couldn't wakeup chip\n", __func__); 221 ecode = HAL_EIO; 222 goto bad; 223 } 224 /* Read Revisions from Chips before taking out of reset */ 225 val = OS_REG_READ(ah, AR_SREV) & AR_SREV_ID; 226 AH_PRIVATE(ah)->ah_macVersion = val >> AR_SREV_ID_S; 227 AH_PRIVATE(ah)->ah_macRev = val & AR_SREV_REVISION; 228 229 /* setup common ini data; rf backends handle remainder */ 230 HAL_INI_INIT(&ahp->ah_ini_modes, ar5416Modes, 6); 231 HAL_INI_INIT(&ahp->ah_ini_common, ar5416Common, 2); 232 233 HAL_INI_INIT(&AH5416(ah)->ah_ini_bb_rfgain, ar5416BB_RfGain, 3); 234 HAL_INI_INIT(&AH5416(ah)->ah_ini_bank0, ar5416Bank0, 2); 235 HAL_INI_INIT(&AH5416(ah)->ah_ini_bank1, ar5416Bank1, 2); 236 HAL_INI_INIT(&AH5416(ah)->ah_ini_bank2, ar5416Bank2, 2); 237 HAL_INI_INIT(&AH5416(ah)->ah_ini_bank3, ar5416Bank3, 3); 238 HAL_INI_INIT(&AH5416(ah)->ah_ini_bank6, ar5416Bank6, 3); 239 HAL_INI_INIT(&AH5416(ah)->ah_ini_bank7, ar5416Bank7, 2); 240 HAL_INI_INIT(&AH5416(ah)->ah_ini_addac, ar5416Addac, 2); 241 242 if (!IS_5416V2_2(ah)) { /* Owl 2.1/2.0 */ 243 struct ini { 244 uint32_t *data; /* NB: !const */ 245 int rows, cols; 246 }; 247 /* override CLKDRV value */ 248 OS_MEMCPY(&AH5416(ah)[1], ar5416Addac, sizeof(ar5416Addac)); 249 AH5416(ah)->ah_ini_addac.data = (uint32_t *) &AH5416(ah)[1]; 250 HAL_INI_VAL((struct ini *)&AH5416(ah)->ah_ini_addac, 31, 1) = 0; 251 } 252 253 if (!ar5416ChipReset(ah, AH_NULL)) { /* reset chip */ 254 HALDEBUG(ah, HAL_DEBUG_ANY, "%s: chip reset failed\n", 255 __func__); 256 ecode = HAL_EIO; 257 goto bad; 258 } 259 260 AH_PRIVATE(ah)->ah_phyRev = OS_REG_READ(ah, AR_PHY_CHIP_ID); 261 262 if (!ar5212ChipTest(ah)) { 263 HALDEBUG(ah, HAL_DEBUG_ANY, "%s: hardware self-test failed\n", 264 __func__); 265 ecode = HAL_ESELFTEST; 266 goto bad; 267 } 268 269 /* 270 * Set correct Baseband to analog shift 271 * setting to access analog chips. 272 */ 273 OS_REG_WRITE(ah, AR_PHY(0), 0x00000007); 274 275 /* Read Radio Chip Rev Extract */ 276 AH_PRIVATE(ah)->ah_analog5GhzRev = ar5212GetRadioRev(ah); 277 switch (AH_PRIVATE(ah)->ah_analog5GhzRev & AR_RADIO_SREV_MAJOR) { 278 case AR_RAD5122_SREV_MAJOR: /* Fowl: 5G/2x2 */ 279 case AR_RAD2122_SREV_MAJOR: /* Fowl: 2+5G/2x2 */ 280 case AR_RAD2133_SREV_MAJOR: /* Fowl: 2G/3x3 */ 281 case AR_RAD5133_SREV_MAJOR: /* Fowl: 2+5G/3x3 */ 282 break; 283 default: 284 if (AH_PRIVATE(ah)->ah_analog5GhzRev == 0) { 285 /* 286 * When RF_Silen is used the analog chip is reset. 287 * So when the system boots with radio switch off 288 * the RF chip rev reads back as zero and we need 289 * to use the mac+phy revs to set the radio rev. 290 */ 291 AH_PRIVATE(ah)->ah_analog5GhzRev = 292 AR_RAD5133_SREV_MAJOR; 293 break; 294 } 295 /* NB: silently accept anything in release code per Atheros */ 296#ifdef AH_DEBUG 297 HALDEBUG(ah, HAL_DEBUG_ANY, 298 "%s: 5G Radio Chip Rev 0x%02X is not supported by " 299 "this driver\n", __func__, 300 AH_PRIVATE(ah)->ah_analog5GhzRev); 301 ecode = HAL_ENOTSUPP; 302 goto bad; 303#endif 304 } 305 306 ecode = ath_hal_v14EepromAttach(ah); 307 if (ecode != HAL_OK) 308 goto bad; 309 310 /* 311 * Got everything we need now to setup the capabilities. 312 */ 313 if (!ar5416FillCapabilityInfo(ah)) { 314 ecode = HAL_EEREAD; 315 goto bad; 316 } 317 318 ecode = ath_hal_eepromGet(ah, AR_EEP_MACADDR, ahp->ah_macaddr); 319 if (ecode != HAL_OK) { 320 HALDEBUG(ah, HAL_DEBUG_ANY, 321 "%s: error getting mac address from EEPROM\n", __func__); 322 goto bad; 323 } 324 /* XXX How about the serial number ? */ 325 /* Read Reg Domain */ 326 AH_PRIVATE(ah)->ah_currentRD = 327 ath_hal_eepromGet(ah, AR_EEP_REGDMN_0, AH_NULL); 328 329 /* 330 * ah_miscMode is populated by ar5416FillCapabilityInfo() 331 * starting from griffin. Set here to make sure that 332 * AR_MISC_MODE_MIC_NEW_LOC_ENABLE is set before a GTK is 333 * placed into hardware 334 */ 335 if (ahp->ah_miscMode != 0) 336 OS_REG_WRITE(ah, AR_MISC_MODE, ahp->ah_miscMode); 337 338 HALDEBUG(ah, HAL_DEBUG_ATTACH, "%s: Attaching AR2133 radio\n", 339 __func__); 340 rfStatus = ar2133RfAttach(ah, &ecode); 341 if (!rfStatus) { 342 HALDEBUG(ah, HAL_DEBUG_ANY, "%s: RF setup failed, status %u\n", 343 __func__, ecode); 344 goto bad; 345 } 346 347 ar5212InitializeGainValues(ah); /* gain ladder */ 348 ar5416AniSetup(ah); /* Anti Noise Immunity */ 349 ar5416InitNfHistBuff(AH5416(ah)->ah_nfCalHist); 350 351 HALDEBUG(ah, HAL_DEBUG_ATTACH, "%s: return\n", __func__); 352 353 return ah; 354bad: 355 if (ahp) 356 ar5416Detach((struct ath_hal *) ahp); 357 if (status) 358 *status = ecode; 359 return AH_NULL; 360} 361 362void 363ar5416Detach(struct ath_hal *ah) 364{ 365 HALDEBUG(ah, HAL_DEBUG_ATTACH, "%s:\n", __func__); 366 367 HALASSERT(ah != AH_NULL); 368 HALASSERT(ah->ah_magic == AR5416_MAGIC); 369 370 ar5212AniDetach(ah); 371 ar5212RfDetach(ah); 372 ah->ah_disable(ah); 373 ar5416SetPowerMode(ah, HAL_PM_FULL_SLEEP, AH_TRUE); 374 ath_hal_eepromDetach(ah); 375 ath_hal_free(ah); 376} 377 378/* 379 * Fill all software cached or static hardware state information. 380 * Return failure if capabilities are to come from EEPROM and 381 * cannot be read. 382 */ 383HAL_BOOL 384ar5416FillCapabilityInfo(struct ath_hal *ah) 385{ 386 struct ath_hal_private *ahpriv = AH_PRIVATE(ah); 387 HAL_CAPABILITIES *pCap = &ahpriv->ah_caps; 388 uint16_t val; 389 390 /* Construct wireless mode from EEPROM */ 391 pCap->halWirelessModes = 0; 392 if (ath_hal_eepromGetFlag(ah, AR_EEP_AMODE)) { 393 pCap->halWirelessModes |= HAL_MODE_11A 394 | HAL_MODE_11NA_HT20 395 | HAL_MODE_11NA_HT40PLUS 396 | HAL_MODE_11NA_HT40MINUS 397 ; 398 } 399 if (ath_hal_eepromGetFlag(ah, AR_EEP_GMODE)) { 400 pCap->halWirelessModes |= HAL_MODE_11G 401 | HAL_MODE_11NG_HT20 402 | HAL_MODE_11NG_HT40PLUS 403 | HAL_MODE_11NG_HT40MINUS 404 ; 405 pCap->halWirelessModes |= HAL_MODE_11A 406 | HAL_MODE_11NA_HT20 407 | HAL_MODE_11NA_HT40PLUS 408 | HAL_MODE_11NA_HT40MINUS 409 ; 410 } 411 412 pCap->halLow2GhzChan = 2312; 413 pCap->halHigh2GhzChan = 2732; 414 415 pCap->halLow5GhzChan = 4915; 416 pCap->halHigh5GhzChan = 6100; 417 418 pCap->halCipherCkipSupport = AH_FALSE; 419 pCap->halCipherTkipSupport = AH_TRUE; 420 pCap->halCipherAesCcmSupport = ath_hal_eepromGetFlag(ah, AR_EEP_AES); 421 422 pCap->halMicCkipSupport = AH_FALSE; 423 pCap->halMicTkipSupport = AH_TRUE; 424 pCap->halMicAesCcmSupport = ath_hal_eepromGetFlag(ah, AR_EEP_AES); 425 /* 426 * Starting with Griffin TX+RX mic keys can be combined 427 * in one key cache slot. 428 */ 429 pCap->halTkipMicTxRxKeySupport = AH_TRUE; 430 pCap->halChanSpreadSupport = AH_TRUE; 431 pCap->halSleepAfterBeaconBroken = AH_TRUE; 432 433 pCap->halCompressSupport = AH_FALSE; 434 pCap->halBurstSupport = AH_TRUE; 435 pCap->halFastFramesSupport = AH_FALSE; /* XXX? */ 436 pCap->halChapTuningSupport = AH_TRUE; 437 pCap->halTurboPrimeSupport = AH_TRUE; 438 439 pCap->halTurboGSupport = pCap->halWirelessModes & HAL_MODE_108G; 440 441 pCap->halPSPollBroken = AH_TRUE; /* XXX fixed in later revs? */ 442 pCap->halVEOLSupport = AH_TRUE; 443 pCap->halBssIdMaskSupport = AH_TRUE; 444 pCap->halMcastKeySrchSupport = AH_FALSE; 445 pCap->halTsfAddSupport = AH_TRUE; 446 447 if (ath_hal_eepromGet(ah, AR_EEP_MAXQCU, &val) == HAL_OK) 448 pCap->halTotalQueues = val; 449 else 450 pCap->halTotalQueues = HAL_NUM_TX_QUEUES; 451 452 if (ath_hal_eepromGet(ah, AR_EEP_KCENTRIES, &val) == HAL_OK) 453 pCap->halKeyCacheSize = val; 454 else 455 pCap->halKeyCacheSize = AR5416_KEYTABLE_SIZE; 456 457 /* XXX not needed */ 458 pCap->halChanHalfRate = AH_FALSE; /* XXX ? */ 459 pCap->halChanQuarterRate = AH_FALSE; /* XXX ? */ 460 461 pCap->halTstampPrecision = 32; 462 pCap->halHwPhyCounterSupport = AH_TRUE; 463 464 pCap->halFastCCSupport = AH_TRUE; 465 pCap->halNumGpioPins = 6; 466 pCap->halWowSupport = AH_FALSE; 467 pCap->halWowMatchPatternExact = AH_FALSE; 468 pCap->halBtCoexSupport = AH_FALSE; /* XXX need support */ 469 pCap->halAutoSleepSupport = AH_FALSE; 470#if 0 /* XXX not yet */ 471 pCap->halNumAntCfg2GHz = ar5416GetNumAntConfig(ahp, HAL_FREQ_BAND_2GHZ); 472 pCap->halNumAntCfg5GHz = ar5416GetNumAntConfig(ahp, HAL_FREQ_BAND_5GHZ); 473#endif 474 pCap->halHTSupport = AH_TRUE; 475 pCap->halTxChainMask = ath_hal_eepromGet(ah, AR_EEP_TXMASK, AH_NULL); 476 /* XXX CB71 uses GPIO 0 to indicate 3 rx chains */ 477 pCap->halRxChainMask = ath_hal_eepromGet(ah, AR_EEP_RXMASK, AH_NULL); 478 pCap->halRtsAggrLimit = 8*1024; /* Owl 2.0 limit */ 479 pCap->halMbssidAggrSupport = AH_TRUE; 480 pCap->halForcePpmSupport = AH_TRUE; 481 pCap->halEnhancedPmSupport = AH_TRUE; 482 483 if (ath_hal_eepromGetFlag(ah, AR_EEP_RFKILL) && 484 ath_hal_eepromGet(ah, AR_EEP_RFSILENT, &ahpriv->ah_rfsilent) == HAL_OK) { 485 /* NB: enabled by default */ 486 ahpriv->ah_rfkillEnabled = AH_TRUE; 487 pCap->halRfSilentSupport = AH_TRUE; 488 } 489 490 ahpriv->ah_rxornIsFatal = AH_FALSE; 491 492 return AH_TRUE; 493} 494#endif /* AH_SUPPORT_AR5416 */ 495