int stp_dbg_log_pkt(MTKSTP_DBG_T *stp_dbg, int dbg_type, int type, int ack_no, int seq_no, int crc, int dir, int len, const unsigned char *body) { struct stp_dbg_pkt_hdr hdr; if (stp_dbg->is_enable == 0) { /*dbg is disable,and not to log*/ } else { stp_dbg_fill_hdr(&hdr, (int) type, (int) ack_no, (int) seq_no, (int) crc, (int) dir, (int) len, (int) dbg_type); stp_dbg_add_pkt(stp_dbg, &hdr, body); } return 0; }
INT32 stp_dbg_log_pkt(MTKSTP_DBG_T *stp_dbg, INT32 dbg_type, INT32 type, INT32 ack_no, INT32 seq_no, INT32 crc, INT32 dir, INT32 len, const UINT8 *body) { struct stp_dbg_pkt_hdr hdr; if (stp_dbg->is_enable == 0) { /*dbg is disable,and not to log*/ } else { stp_dbg_fill_hdr(&hdr, (INT32) type, (INT32) ack_no, (INT32) seq_no, (INT32) crc, (INT32) dir, (INT32) len, (INT32) dbg_type); stp_dbg_add_pkt(stp_dbg, &hdr, body); } return 0; }