diff options
author | Michal Kazior <michal.kazior@tieto.com> | 2013-08-09 04:13:34 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2013-08-15 09:04:41 -0400 |
commit | 961d4c38961a0f61e43edbb1fb579f28475a88bd (patch) | |
tree | ac9d8b74316fe4c9e79571c2b89b1b790ac50056 /drivers/net/wireless/ath/ath10k/htt.c | |
parent | 0d9b0438b616479e4decadf2cb7d39a5f4e5360f (diff) |
ath10k: add support for HTT 3.0
New firmware comes with new HTT protocol version.
In 3.0 the separate mgmt tx command has been
removed. All traffic is to be pushed through data
tx (tx_frm) command with a twist - FW seems to not
be able (yet?) to access tx fragment table so for
manamgement frames frame pointer is passed
directly.
Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
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 | ||