|
@@ -56,8 +56,6 @@
|
|
|
#define TX_DESC_ID_HIGH_MASK 0xffff0000
|
|
|
#define TX_DESC_ID_HIGH_SHIFT 16
|
|
|
|
|
|
-#define PER_PACKET_STATS_THRESHOLD 4096
|
|
|
-
|
|
|
void pktlog_getbuf_intsafe(struct ath_pktlog_arg *plarg)
|
|
|
{
|
|
|
struct ath_pktlog_buf *log_buf;
|
|
@@ -148,31 +146,6 @@ void pktlog_getbuf_intsafe(struct ath_pktlog_arg *plarg)
|
|
|
plarg->buf = log_ptr;
|
|
|
}
|
|
|
|
|
|
-/**
|
|
|
- * pktlog_check_threshold() - This function checks threshold for triggering
|
|
|
- * packet stats
|
|
|
- * @pl_info: Packet log information pointer
|
|
|
- * @log_size: Size of current packet log information
|
|
|
- *
|
|
|
- * This function internally triggers logging of per packet stats when the
|
|
|
- * incoming data crosses threshold limit
|
|
|
- *
|
|
|
- * Return: None
|
|
|
- *
|
|
|
- */
|
|
|
-void pktlog_check_threshold(struct ath_pktlog_info *pl_info,
|
|
|
- size_t log_size)
|
|
|
-{
|
|
|
- PKTLOG_LOCK(pl_info);
|
|
|
- pl_info->buf->bytes_written += log_size + sizeof(struct ath_pktlog_hdr);
|
|
|
-
|
|
|
- if (pl_info->buf->bytes_written >= PER_PACKET_STATS_THRESHOLD) {
|
|
|
- wlan_logging_set_per_pkt_stats();
|
|
|
- pl_info->buf->bytes_written = 0;
|
|
|
- }
|
|
|
- PKTLOG_UNLOCK(pl_info);
|
|
|
-}
|
|
|
-
|
|
|
char *pktlog_getbuf(struct ol_pktlog_dev_t *pl_dev,
|
|
|
struct ath_pktlog_info *pl_info,
|
|
|
size_t log_size, struct ath_pktlog_hdr *pl_hdr)
|