[ath_hal] Add KeyMiss for AR5212/AR5416 series chips.
This is a flag from the MAC that says the received packet didn't match a keycache slot. This isn't technically a problem as WEP keys don't match keycache slots (they're "global" keys), but it could be useful for tracking down CCMP decryption failures. Right now it's a no-op - it mirrors what the AR9300 HAL does and it just increments a counter. But, hey, maybe one day I'll use it for diagnosing keycache/CCMP decrypt issues.
This commit is contained in:
parent
ee06cffcd2
commit
b5e7ee4718
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=362671
@ -265,7 +265,6 @@ ar5212ProcRxDesc(struct ath_hal *ah, struct ath_desc *ds,
|
||||
rs->rs_datalen = ads->ds_rxstatus0 & AR_DataLen;
|
||||
rs->rs_tstamp = MS(ads->ds_rxstatus1, AR_RcvTimestamp);
|
||||
rs->rs_status = 0;
|
||||
/* XXX what about KeyCacheMiss? */
|
||||
rs->rs_rssi = MS(ads->ds_rxstatus0, AR_RcvSigStrength);
|
||||
/* discard invalid h/w rssi data */
|
||||
if (rs->rs_rssi == -128)
|
||||
@ -274,6 +273,8 @@ ar5212ProcRxDesc(struct ath_hal *ah, struct ath_desc *ds,
|
||||
rs->rs_keyix = MS(ads->ds_rxstatus1, AR_KeyIdx);
|
||||
else
|
||||
rs->rs_keyix = HAL_RXKEYIX_INVALID;
|
||||
if (ads->ds_rxstatus1 & AR_KeyCacheMiss)
|
||||
rs->rs_status |= HAL_RXERR_KEYMISS;
|
||||
/* NB: caller expected to do rate table mapping */
|
||||
rs->rs_rate = MS(ads->ds_rxstatus0, AR_RcvRate);
|
||||
rs->rs_antenna = MS(ads->ds_rxstatus0, AR_RcvAntenna);
|
||||
|
@ -183,8 +183,6 @@ ar5416ProcRxDesc(struct ath_hal *ah, struct ath_desc *ds,
|
||||
rs->rs_datalen = ads->ds_rxstatus1 & AR_DataLen;
|
||||
rs->rs_tstamp = ads->AR_RcvTimestamp;
|
||||
|
||||
/* XXX what about KeyCacheMiss? */
|
||||
|
||||
rs->rs_rssi = MS(ads->ds_rxstatus4, AR_RxRSSICombined);
|
||||
rs->rs_rssi_ctl[0] = MS(ads->ds_rxstatus0, AR_RxRSSIAnt00);
|
||||
rs->rs_rssi_ctl[1] = MS(ads->ds_rxstatus0, AR_RxRSSIAnt01);
|
||||
@ -277,5 +275,8 @@ ar5416ProcRxDesc(struct ath_hal *ah, struct ath_desc *ds,
|
||||
rs->rs_status |= HAL_RXERR_MIC;
|
||||
}
|
||||
|
||||
if (ads->ds_rxstatus8 & AR_KeyMiss)
|
||||
rs->rs_status |= HAL_RXERR_KEYMISS;
|
||||
|
||||
return HAL_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user