aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLuis R. Rodriguez <lrodriguez@atheros.com>2009-09-23 23:07:01 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-10-07 16:39:42 -0400
commit3ca340381a1da26906dc766a1e4f8a5d0a613189 (patch)
tree0f17e2037c2e7e8625ba53b6266ebaf950ea3632 /drivers
parent7322fd19295fa7f7d954a19a5f0b77687d441846 (diff)
ath9k_hw: print device ID if not supported
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/ath/ath9k/hw.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c
index 7d167a1b286d..7bf0f8c42e6d 100644
--- a/drivers/net/wireless/ath/ath9k/hw.c
+++ b/drivers/net/wireless/ath/ath9k/hw.c
@@ -900,8 +900,12 @@ int ath9k_hw_init(struct ath_hw *ah)
900 struct ath_common *common = ath9k_hw_common(ah); 900 struct ath_common *common = ath9k_hw_common(ah);
901 int r = 0; 901 int r = 0;
902 902
903 if (!ath9k_hw_devid_supported(ah->hw_version.devid)) 903 if (!ath9k_hw_devid_supported(ah->hw_version.devid)) {
904 ath_print(common, ATH_DBG_FATAL,
905 "Unsupported device ID: 0x%0x\n",
906 ah->hw_version.devid);
904 return -EOPNOTSUPP; 907 return -EOPNOTSUPP;
908 }
905 909
906 ath9k_hw_init_defaults(ah); 910 ath9k_hw_init_defaults(ah);
907 ath9k_hw_init_config(ah); 911 ath9k_hw_init_config(ah);