From 9551ea2d0e625ce5d2147b6a15100e0f7a2ec6e2 Mon Sep 17 00:00:00 2001 From: Alok Kumar Date: Wed, 17 Jul 2019 19:53:45 +0530 Subject: [PATCH] qcacmn: Define tx_status enum in wlan_logging_sock_svc.h Add the tx_status enum in wlan_logging_sock_svc.h so that enum can be used for MGMT TX status mapping in wma_mgmt.c Change-Id: I5681e6fcc39704b6be18bc68b1042e0e6b53f590 CRs-Fixed: 2491787 --- utils/logging/inc/wlan_logging_sock_svc.h | 19 +++++++++++++++++++ utils/logging/src/wlan_logging_sock_svc.c | 20 -------------------- 2 files changed, 19 insertions(+), 20 deletions(-) diff --git a/utils/logging/inc/wlan_logging_sock_svc.h b/utils/logging/inc/wlan_logging_sock_svc.h index 9b6c677cfb2a..832869a9a99b 100644 --- a/utils/logging/inc/wlan_logging_sock_svc.h +++ b/utils/logging/inc/wlan_logging_sock_svc.h @@ -95,5 +95,24 @@ void wlan_pkt_stats_to_logger_thread(void *pl_hdr, void *pkt_dump, void *data) } #endif +/** + * enum tx_status - tx status + * @tx_status_ok: successfully sent + acked + * @tx_status_discard: discard - not sent (congestion control) + * @tx_status_no_ack: no_ack - sent, but no ack + * @tx_status_download_fail: download_fail - + * the host could not deliver the tx frame to the target + * @tx_status_peer_del: peer_del - tx completion for + * already deleted peer used for HL case + * + * This enum has tx status types + */ +enum tx_status { + tx_status_ok, + tx_status_discard, + tx_status_no_ack, + tx_status_download_fail, + tx_status_peer_del, +}; #endif /* WLAN_LOGGING_SOCK_SVC_H */ diff --git a/utils/logging/src/wlan_logging_sock_svc.c b/utils/logging/src/wlan_logging_sock_svc.c index b65033970c4b..0e2c3e0a184e 100644 --- a/utils/logging/src/wlan_logging_sock_svc.c +++ b/utils/logging/src/wlan_logging_sock_svc.c @@ -50,26 +50,6 @@ #define MAX_NUM_PKT_LOG 32 -/** - * struct tx_status - tx status - * @tx_status_ok: successfully sent + acked - * @tx_status_discard: discard - not sent (congestion control) - * @tx_status_no_ack: no_ack - sent, but no ack - * @tx_status_download_fail: download_fail - - * the host could not deliver the tx frame to the target - * @tx_status_peer_del: peer_del - tx completion for - * alreay deleted peer used for HL case - * - * This enum has tx status types - */ -enum tx_status { - tx_status_ok, - tx_status_discard, - tx_status_no_ack, - tx_status_download_fail, - tx_status_peer_del, -}; - #define LOGGING_TRACE(level, args ...) \ QDF_TRACE(QDF_MODULE_ID_HDD, level, ## args)