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

Commit 94899025 authored by Alex Hacker's avatar Alex Hacker Committed by John W. Linville
Browse files

ath9k_hw: fix EIFS value to microseconds



The EIFS value read from AR_D_GBL_IFS_EIFS register in core clocks and then
written back as microsecond value.

Signed-off-by: default avatarAlex Hacker <hacker@epn.ru>
Acked-by: default avatarFelix Fietkau <nbd@openwrt.org>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent dc713fb2
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -996,7 +996,7 @@ void ath9k_hw_init_global_settings(struct ath_hw *ah)
		slottime = 21;
		slottime = 21;
		sifstime = 64;
		sifstime = 64;
	} else {
	} else {
		eifs = REG_READ(ah, AR_D_GBL_IFS_EIFS);
		eifs = REG_READ(ah, AR_D_GBL_IFS_EIFS)/common->clockrate;
		reg = REG_READ(ah, AR_USEC);
		reg = REG_READ(ah, AR_USEC);
		rx_lat = MS(reg, AR_USEC_RX_LAT);
		rx_lat = MS(reg, AR_USEC_RX_LAT);
		tx_lat = MS(reg, AR_USEC_TX_LAT);
		tx_lat = MS(reg, AR_USEC_TX_LAT);