diff --git a/dp/wifi3.0/dp_rx_mon.h b/dp/wifi3.0/dp_rx_mon.h index ff19b224ac43..b7347a3b2966 100644 --- a/dp/wifi3.0/dp_rx_mon.h +++ b/dp/wifi3.0/dp_rx_mon.h @@ -26,7 +26,10 @@ */ #define MON_BUF_MIN_ENTRIES 64 -/* The maxinum buffer length allocated for radio tap */ +/* + * The maximum headroom reserved for monitor destination buffer to + * accomodate radiotap header and protocol flow tag + */ #ifdef DP_RX_MON_MEM_FRAG /* *---------------------------------- @@ -37,11 +40,14 @@ * actual offset, data gets written to actual offset after updating * radiotap HDR. */ -#define MAX_MONITOR_HEADER (256) +#define DP_RX_MON_MAX_MONITOR_HEADER (256) #else -#define MAX_MONITOR_HEADER (512) +#define DP_RX_MON_MAX_MONITOR_HEADER (512) #endif +/* The maximum buffer length allocated for radiotap for monitor status buffer */ +#define MAX_MONITOR_HEADER (512) + /* l2 header pad byte in case of Raw frame is Zero and 2 in non raw */ #define DP_RX_MON_RAW_L2_HDR_PAD_BYTE (0) #define DP_RX_MON_NONRAW_L2_HDR_PAD_BYTE (2) @@ -412,8 +418,8 @@ QDF_STATUS dp_rx_mon_alloc_parent_buffer(qdf_nbuf_t *head_msdu) * | 64 B | Length(128 B) | * -------------------------------------- */ - *head_msdu = qdf_nbuf_alloc_no_recycler(MAX_MONITOR_HEADER, - MAX_MONITOR_HEADER, 4); + *head_msdu = qdf_nbuf_alloc_no_recycler(DP_RX_MON_MAX_MONITOR_HEADER, + DP_RX_MON_MAX_MONITOR_HEADER, 4); if (!(*head_msdu)) return QDF_STATUS_E_FAILURE;