summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/init.c
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2011-06-21 11:23:23 +0200
committerJohn W. Linville <linville@tuxdriver.com>2011-06-22 16:09:49 -0400
commit3762561aa8afb0bd9fb60d3d847961f9945f8143 (patch)
tree0968f5136282712d6ace7b952619282ccdf1c88a /drivers/net/wireless/ath/ath9k/init.c
parent03689301da71fa80957a166e211431bb6e2904e3 (diff)
downloadop-kernel-dev-3762561aa8afb0bd9fb60d3d847961f9945f8143.zip
op-kernel-dev-3762561aa8afb0bd9fb60d3d847961f9945f8143.tar.gz
ath9k: add MAC revision detection for AR9330
The AR9330 1.0 and 1.1 are using the same revision, thus it is not possible to distinguish the two chips. The platform setup code can distinguish the chips based on the SoC revision. Add a callback function to ath9k_platform_data in order to allow getting the revision number from the platform code. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/init.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c
index d4b166c..6612112 100644
--- a/drivers/net/wireless/ath/ath9k/init.c
+++ b/drivers/net/wireless/ath/ath9k/init.c
@@ -574,6 +574,7 @@ static int ath9k_init_softc(u16 devid, struct ath_softc *sc, u16 subsysid,
sc->sc_ah->gpio_val = pdata->gpio_val;
sc->sc_ah->led_pin = pdata->led_pin;
ah->is_clk_25mhz = pdata->is_clk_25mhz;
+ ah->get_mac_revision = pdata->get_mac_revision;
}
common = ath9k_hw_common(ah);
OpenPOWER on IntegriCloud