mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-01 03:11:59 +00:00
ath9k_hw: Optimize rx descriptor processing for AR9003
No need to process RxDone and ds_info status again in case valid rx status is given. Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
0f9dc29821
commit
cca1fe1aed
1 changed files with 8 additions and 7 deletions
|
@ -531,6 +531,7 @@ int ath9k_hw_process_rxdesc_edma(struct ath_hw *ah, struct ath_rx_status *rxs,
|
||||||
|
|
||||||
/* TODO: byte swap on big endian for ar9300_10 */
|
/* TODO: byte swap on big endian for ar9300_10 */
|
||||||
|
|
||||||
|
if (!rxs) {
|
||||||
if ((rxsp->status11 & AR_RxDone) == 0)
|
if ((rxsp->status11 & AR_RxDone) == 0)
|
||||||
return -EINPROGRESS;
|
return -EINPROGRESS;
|
||||||
|
|
||||||
|
@ -540,8 +541,8 @@ int ath9k_hw_process_rxdesc_edma(struct ath_hw *ah, struct ath_rx_status *rxs,
|
||||||
if ((rxsp->ds_info & (AR_TxRxDesc | AR_CtrlStat)) != 0)
|
if ((rxsp->ds_info & (AR_TxRxDesc | AR_CtrlStat)) != 0)
|
||||||
return -EINPROGRESS;
|
return -EINPROGRESS;
|
||||||
|
|
||||||
if (!rxs)
|
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
rxs->rs_status = 0;
|
rxs->rs_status = 0;
|
||||||
rxs->rs_flags = 0;
|
rxs->rs_flags = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue