Add extra debugging fields.
This commit is contained in:
parent
a74ebfe59e
commit
3301ff5648
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=245560
@ -45,9 +45,11 @@ ar5212_decode_txstatus(struct if_ath_alq_payload *a)
|
||||
/* XXX assumes txs is smaller than PAYLOAD_LEN! */
|
||||
memcpy(&txs, &a->payload, sizeof(struct ar5212_desc));
|
||||
|
||||
printf("[%u] [%llu] TXSTATUS\n",
|
||||
printf("[%u] [%llu] TXSTATUS: TxDone=%d, TS=0x%08x\n\n",
|
||||
(unsigned int) be32toh(a->hdr.tstamp),
|
||||
(unsigned long long) be64toh(a->hdr.threadid));
|
||||
(unsigned long long) be64toh(a->hdr.threadid),
|
||||
MF(txs.u.tx.status1, AR_Done),
|
||||
MS(txs.u.tx.status0, AR_SendTimestamp));
|
||||
|
||||
/* ds_txstatus0 */
|
||||
printf(" Frmok=%d, xretries=%d, fifounderrun=%d, filt=%d\n",
|
||||
@ -147,9 +149,11 @@ ar5212_decode_rxstatus(struct if_ath_alq_payload *a)
|
||||
/* XXX assumes rxs is smaller than PAYLOAD_LEN! */
|
||||
memcpy(&rxs, &a->payload, sizeof(struct ar5212_desc));
|
||||
|
||||
printf("[%u] [%llu] RXSTATUS\n",
|
||||
printf("[%u] [%llu] RXSTATUS: RxOK=%d TS=0x%08x\n",
|
||||
(unsigned int) be32toh(a->hdr.tstamp),
|
||||
(unsigned long long) be64toh(a->hdr.threadid));
|
||||
(unsigned long long) be64toh(a->hdr.threadid),
|
||||
MF(rxs.ds_rxstatus1, AR_Done),
|
||||
MS(rxs.ds_rxstatus1, AR_RcvTimestamp));
|
||||
|
||||
printf(" link=0x%08x, data=0x%08x, ctl0=0x%08x, ctl2=0x%08x\n",
|
||||
rxs.ds_link,
|
||||
|
@ -45,9 +45,11 @@ ar5416_decode_txstatus(struct if_ath_alq_payload *a)
|
||||
/* XXX assumes txs is smaller than PAYLOAD_LEN! */
|
||||
memcpy(&txs, &a->payload, sizeof(struct ar5416_desc));
|
||||
|
||||
printf("[%u] [%llu] TXSTATUS\n",
|
||||
printf("[%u] [%llu] TXSTATUS: TxDone=%d, TS=0x%08x\n",
|
||||
(unsigned int) be32toh(a->hdr.tstamp),
|
||||
(unsigned long long) be64toh(a->hdr.threadid));
|
||||
(unsigned long long) be64toh(a->hdr.threadid),
|
||||
MF(txs.u.tx.status[9], AR_TxDone),
|
||||
txs.u.tx.status[2]);
|
||||
|
||||
/* ds_txstatus0 */
|
||||
printf(" RX RSSI 0 [%d %d %d]\n",
|
||||
@ -250,9 +252,11 @@ ar5416_decode_rxstatus(struct if_ath_alq_payload *a)
|
||||
/* XXX assumes rxs is smaller than PAYLOAD_LEN! */
|
||||
memcpy(&rxs, &a->payload, sizeof(struct ar5416_desc));
|
||||
|
||||
printf("[%u] [%llu] RXSTATUS\n",
|
||||
printf("[%u] [%llu] RXSTATUS: RxDone=%d, TS=0x%08x\n",
|
||||
(unsigned int) be32toh(a->hdr.tstamp),
|
||||
(unsigned long long) be64toh(a->hdr.threadid));
|
||||
(unsigned long long) be64toh(a->hdr.threadid),
|
||||
MF(rxs.ds_rxstatus8, AR_RxDone),
|
||||
rxs.ds_rxstatus2);
|
||||
|
||||
printf(" link=0x%08x, data=0x%08x, ctl0=0x%08x, ctl2=0x%08x\n",
|
||||
rxs.ds_link,
|
||||
|
Loading…
Reference in New Issue
Block a user