ath9k_hw: print device ID if not supported
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Thu, 24 Sep 2009 03:07:01 +0000 (23:07 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 7 Oct 2009 20:39:42 +0000 (16:39 -0400)
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/hw.c

index 7d167a1b286da03dcb3d54fcb0ab19f6206700d4..7bf0f8c42e6d551d8337f93965470e3dee2b8408 100644 (file)
@@ -900,8 +900,12 @@ int ath9k_hw_init(struct ath_hw *ah)
        struct ath_common *common = ath9k_hw_common(ah);
        int r = 0;
 
-       if (!ath9k_hw_devid_supported(ah->hw_version.devid))
+       if (!ath9k_hw_devid_supported(ah->hw_version.devid)) {
+               ath_print(common, ATH_DBG_FATAL,
+                         "Unsupported device ID: 0x%0x\n",
+                         ah->hw_version.devid);
                return -EOPNOTSUPP;
+       }
 
        ath9k_hw_init_defaults(ah);
        ath9k_hw_init_config(ah);