ath10k: replace warning with an error message if HTT op version is unset
authorMohammed Shafi Shajakhan <mohammed@qti.qualcomm.com>
Thu, 30 Jun 2016 12:24:01 +0000 (15:24 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 8 Jul 2016 06:53:44 +0000 (09:53 +0300)
Print an ath10k error message rather a call trace when HTT op version is
not found from firmware META data (IE). This should be sufficient to figure
out what went wrong.

Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/core.c

index e48eefda2387474e099bd1afb090039d5bb99025..fa6a0f9a15f51d947ca4dabf6fa2f775ed08f196 100644 (file)
@@ -1697,7 +1697,7 @@ static int ath10k_core_init_firmware_features(struct ath10k *ar)
                case ATH10K_FW_WMI_OP_VERSION_10_4:
                case ATH10K_FW_WMI_OP_VERSION_UNSET:
                case ATH10K_FW_WMI_OP_VERSION_MAX:
-                       WARN_ON(1);
+                       ath10k_err(ar, "htt op version not found from fw meta data");
                        return -EINVAL;
                }
        }