aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/hw.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-10-11 15:39:21 -0400
committerDavid S. Miller <davem@davemloft.net>2011-10-11 15:39:21 -0400
commit9687c637388f63b87fcc18eee6e65bcfca4f49ca (patch)
tree0929bb8dc602c4f86b6b2e95bca94015de2b0868 /drivers/net/wireless/ath/ath9k/hw.c
parent258daca2bc9f97ace65c9480c901fddfce1e20cf (diff)
parent094daf7db7c47861009899ce23f9177d761e20b0 (diff)
Merge branch 'for-davem' of git://git.infradead.org/users/linville/wireless-next
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/hw.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/hw.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c
index f2de7ee047ce..42ebe8fb053a 100644
--- a/drivers/net/wireless/ath/ath9k/hw.c
+++ b/drivers/net/wireless/ath/ath9k/hw.c
@@ -284,7 +284,12 @@ static void ath9k_hw_read_revisions(struct ath_hw *ah)
284 ah->hw_version.macVersion = 284 ah->hw_version.macVersion =
285 (val & AR_SREV_VERSION2) >> AR_SREV_TYPE2_S; 285 (val & AR_SREV_VERSION2) >> AR_SREV_TYPE2_S;
286 ah->hw_version.macRev = MS(val, AR_SREV_REVISION2); 286 ah->hw_version.macRev = MS(val, AR_SREV_REVISION2);
287 ah->is_pciexpress = (val & AR_SREV_TYPE2_HOST_MODE) ? 0 : 1; 287
288 if (AR_SREV_9480(ah))
289 ah->is_pciexpress = true;
290 else
291 ah->is_pciexpress = (val &
292 AR_SREV_TYPE2_HOST_MODE) ? 0 : 1;
288 } else { 293 } else {
289 if (!AR_SREV_9100(ah)) 294 if (!AR_SREV_9100(ah))
290 ah->hw_version.macVersion = MS(val, AR_SREV_VERSION); 295 ah->hw_version.macVersion = MS(val, AR_SREV_VERSION);
@@ -2153,6 +2158,10 @@ int ath9k_hw_fill_cap_info(struct ath_hw *ah)
2153 pCap->num_gpio_pins = AR9271_NUM_GPIO; 2158 pCap->num_gpio_pins = AR9271_NUM_GPIO;
2154 else if (AR_DEVID_7010(ah)) 2159 else if (AR_DEVID_7010(ah))
2155 pCap->num_gpio_pins = AR7010_NUM_GPIO; 2160 pCap->num_gpio_pins = AR7010_NUM_GPIO;
2161 else if (AR_SREV_9300_20_OR_LATER(ah))
2162 pCap->num_gpio_pins = AR9300_NUM_GPIO;
2163 else if (AR_SREV_9287_11_OR_LATER(ah))
2164 pCap->num_gpio_pins = AR9287_NUM_GPIO;
2156 else if (AR_SREV_9285_12_OR_LATER(ah)) 2165 else if (AR_SREV_9285_12_OR_LATER(ah))
2157 pCap->num_gpio_pins = AR9285_NUM_GPIO; 2166 pCap->num_gpio_pins = AR9285_NUM_GPIO;
2158 else if (AR_SREV_9280_20_OR_LATER(ah)) 2167 else if (AR_SREV_9280_20_OR_LATER(ah))