diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/htt.c')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/htt.c | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/drivers/net/wireless/ath/ath10k/htt.c b/drivers/net/wireless/ath/ath10k/htt.c index 39342c5cfcb2..5f7eeebc5432 100644 --- a/drivers/net/wireless/ath/ath10k/htt.c +++ b/drivers/net/wireless/ath/ath10k/htt.c | |||
@@ -104,21 +104,16 @@ err_htc_attach: | |||
104 | 104 | ||
105 | static int ath10k_htt_verify_version(struct ath10k_htt *htt) | 105 | static int ath10k_htt_verify_version(struct ath10k_htt *htt) |
106 | { | 106 | { |
107 | ath10k_dbg(ATH10K_DBG_HTT, | 107 | ath10k_info("htt target version %d.%d\n", |
108 | "htt target version %d.%d; host version %d.%d\n", | 108 | htt->target_version_major, htt->target_version_minor); |
109 | htt->target_version_major, | 109 | |
110 | htt->target_version_minor, | 110 | if (htt->target_version_major != 2 && |
111 | HTT_CURRENT_VERSION_MAJOR, | 111 | htt->target_version_major != 3) { |
112 | HTT_CURRENT_VERSION_MINOR); | 112 | ath10k_err("unsupported htt major version %d. supported versions are 2 and 3\n", |
113 | 113 | htt->target_version_major); | |
114 | if (htt->target_version_major != HTT_CURRENT_VERSION_MAJOR) { | ||
115 | ath10k_err("htt major versions are incompatible!\n"); | ||
116 | return -ENOTSUPP; | 114 | return -ENOTSUPP; |
117 | } | 115 | } |
118 | 116 | ||
119 | if (htt->target_version_minor != HTT_CURRENT_VERSION_MINOR) | ||
120 | ath10k_warn("htt minor version differ but still compatible\n"); | ||
121 | |||
122 | return 0; | 117 | return 0; |
123 | } | 118 | } |
124 | 119 | ||