ath5k: Enable AR2315 chipset recognition
authorWojciech Dubowik <dubowoj@neratec.com>
Fri, 18 Feb 2011 12:06:42 +0000 (13:06 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 21 Feb 2011 20:39:56 +0000 (15:39 -0500)
Enable recognition of AR2315 chipsets in ath5k driver.

Reported-by: Simon Morgenthaler <s.morgenthaler@students.unibe.ch>
Signed-off-by: Wojciech Dubowik <Wojciech.Dubowik@neratec.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/attach.c

index c71fdbb4c439fafe792b83dc43ad794b18d7eeaf..bc82405604884dadfb293c60817b4f2a93d3a40b 100644 (file)
@@ -220,7 +220,8 @@ int ath5k_hw_init(struct ath5k_softc *sc)
                        ah->ah_radio = AR5K_RF5112;
                        ah->ah_single_chip = false;
                        ah->ah_radio_5ghz_revision = AR5K_SREV_RAD_5112B;
-               } else if (ah->ah_mac_version == (AR5K_SREV_AR2415 >> 4)) {
+               } else if (ah->ah_mac_version == (AR5K_SREV_AR2415 >> 4) ||
+                       ah->ah_mac_version == (AR5K_SREV_AR2315_R6 >> 4)) {
                        ah->ah_radio = AR5K_RF2316;
                        ah->ah_single_chip = true;
                        ah->ah_radio_5ghz_revision = AR5K_SREV_RAD_2316;