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

Commit a1c781bb authored by Felix Fietkau's avatar Felix Fietkau Committed by John W. Linville
Browse files

ath9k: avoid accessing MRC registers on single-chain devices



They are not implemented, and accessing them might trigger errors

Cc: stable@vger.kernel.org
Signed-off-by: default avatarFelix Fietkau <nbd@openwrt.org>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent ca6d4a74
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1172,6 +1172,10 @@ skip_ws_det:
		 * is_on == 0 means MRC CCK is OFF (more noise imm)
		 */
		bool is_on = param ? 1 : 0;

		if (ah->caps.rx_chainmask == 1)
			break;

		REG_RMW_FIELD(ah, AR_PHY_MRC_CCK_CTRL,
			      AR_PHY_MRC_CCK_ENABLE, is_on);
		REG_RMW_FIELD(ah, AR_PHY_MRC_CCK_CTRL,