提交 2387f0dc 编写于 作者: K Kalle Valo

ath6kl: print seqno in htc debug logs

Makes it easier to debug where frames are going.
Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
上级 6250aac6
...@@ -439,6 +439,9 @@ static void htc_tx_comp_handler(struct htc_target *target, ...@@ -439,6 +439,9 @@ static void htc_tx_comp_handler(struct htc_target *target,
struct htc_endpoint *endpoint = &target->endpoint[packet->endpoint]; struct htc_endpoint *endpoint = &target->endpoint[packet->endpoint];
struct list_head container; struct list_head container;
ath6kl_dbg(ATH6KL_DBG_HTC, "htc tx complete seqno %d\n",
packet->info.tx.seqno);
htc_tx_comp_update(target, endpoint, packet); htc_tx_comp_update(target, endpoint, packet);
INIT_LIST_HEAD(&container); INIT_LIST_HEAD(&container);
list_add_tail(&packet->list, &container); list_add_tail(&packet->list, &container);
...@@ -501,8 +504,8 @@ static int ath6kl_htc_tx_issue(struct htc_target *target, ...@@ -501,8 +504,8 @@ static int ath6kl_htc_tx_issue(struct htc_target *target,
padded_len = CALC_TXRX_PADDED_LEN(target, send_len); padded_len = CALC_TXRX_PADDED_LEN(target, send_len);
ath6kl_dbg(ATH6KL_DBG_HTC, ath6kl_dbg(ATH6KL_DBG_HTC,
"htc tx issue len %d padded_len %d mbox 0x%X %s\n", "htc tx issue len %d seqno %d padded_len %d mbox 0x%X %s\n",
send_len, padded_len, send_len, packet->info.tx.seqno, padded_len,
target->dev->ar->mbox_info.htc_addr, target->dev->ar->mbox_info.htc_addr,
sync ? "sync" : "async"); sync ? "sync" : "async");
...@@ -705,8 +708,8 @@ static int ath6kl_htc_tx_setup_scat_list(struct htc_target *target, ...@@ -705,8 +708,8 @@ static int ath6kl_htc_tx_setup_scat_list(struct htc_target *target,
scat_req->len += len; scat_req->len += len;
scat_req->scat_entries++; scat_req->scat_entries++;
ath6kl_dbg(ATH6KL_DBG_HTC, ath6kl_dbg(ATH6KL_DBG_HTC,
"htc tx adding (%d) pkt 0x%p len %d remaining %d\n", "htc tx adding (%d) pkt 0x%p seqno %d len %d remaining %d\n",
i, packet, len, rem_scat); i, packet, packet->info.tx.seqno, len, rem_scat);
} }
/* Roll back scatter setup in case of any failure */ /* Roll back scatter setup in case of any failure */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册