Commit 7a42e4e7 authored by Felix Fietkau's avatar Felix Fietkau Committed by John W. Linville

ath9k_hw: get QCA953x WMAC revision via platform_data

The SREV register in the WMAC register space does not contain the chip
revision, so it needs to be passed in from the kernel.

With an updated kernel, this fixes tx gain table selection.
Signed-off-by: default avatarFelix Fietkau <nbd@openwrt.org>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent ab1796eb
...@@ -246,6 +246,8 @@ static void ath9k_hw_read_revisions(struct ath_hw *ah) ...@@ -246,6 +246,8 @@ static void ath9k_hw_read_revisions(struct ath_hw *ah)
return; return;
case AR9300_DEVID_AR953X: case AR9300_DEVID_AR953X:
ah->hw_version.macVersion = AR_SREV_VERSION_9531; ah->hw_version.macVersion = AR_SREV_VERSION_9531;
if (ah->get_mac_revision)
ah->hw_version.macRev = ah->get_mac_revision();
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment