Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cca1fe1a authored by Rajkumar Manoharan's avatar Rajkumar Manoharan Committed by John W. Linville
Browse files

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: default avatarRajkumar Manoharan <rmanohar@qca.qualcomm.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 0f9dc298
Loading
Loading
Loading
Loading
+8 −7
Original line number Diff line number Diff line
@@ -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 */

	if (!rxs) {
		if ((rxsp->status11 & AR_RxDone) == 0)
			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)
			return -EINPROGRESS;

	if (!rxs)
		return 0;
	}

	rxs->rs_status = 0;
	rxs->rs_flags =  0;