
For full monitor, it is observed destination ppdu_id and status ppdu_id mismatches. a. If status ring ppdu_id is leading compared to destiantion ring ppdu_id, drop destination ring ppdus b. If status ring ppdu_id is lagging compared to destiantion ring ppdu_id, drop status ring ppdus c. Handle warp around scenarios CRs-Fixed: 2686747 Change-Id: Ie059c891347d4ff59b230881d5a9049d8acf279e
78 rindas
2.3 KiB
C
78 rindas
2.3 KiB
C
/**
|
|
* Copyright (c) 2020, The Linux Foundation. All rights reserved.
|
|
*
|
|
* Permission to use, copy, modify, and/or distribute this software for any
|
|
* purpose with or without fee is hereby granted, provided that the above
|
|
* copyright notice and this permission notice appear in all copies.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
*/
|
|
|
|
#ifndef _DP_FULL_MON_H_
|
|
#define _DP_FULL_MON_H_
|
|
|
|
#define DP_RX_MON_PPDU_ID_WRAP 32535
|
|
/**
|
|
* struct dp_mon_mpdu () - DP Monitor mpdu object
|
|
*
|
|
* @head: Head msdu
|
|
* @tail: Tail msdu
|
|
* @mpdu_list_elem: mpdu list element
|
|
* @rs_flags: Rx status flags
|
|
* @ant_signal_db: RSSI in dBm
|
|
* @is_stbc: is stbc is enabled
|
|
* @sgi: SGI
|
|
* @beamformed: if beamformed
|
|
*/
|
|
struct dp_mon_mpdu {
|
|
qdf_nbuf_t head;
|
|
qdf_nbuf_t tail;
|
|
TAILQ_ENTRY(dp_mon_mpdu) mpdu_list_elem;
|
|
|
|
uint8_t rs_flags;
|
|
uint8_t ant_signal_db;
|
|
uint8_t is_stbc;
|
|
uint8_t sgi;
|
|
uint8_t beamformed;
|
|
};
|
|
|
|
static inline QDF_STATUS
|
|
dp_rx_mon_is_rxdma_error(struct hal_rx_mon_desc_info *desc_info)
|
|
{
|
|
enum hal_rxdma_error_code rxdma_err = desc_info->rxdma_error_code;
|
|
|
|
if (qdf_unlikely(desc_info->rxdma_push_reason ==
|
|
HAL_RX_WBM_RXDMA_PSH_RSN_ERROR)) {
|
|
if (qdf_unlikely((rxdma_err == HAL_RXDMA_ERR_FLUSH_REQUEST) ||
|
|
(rxdma_err == HAL_RXDMA_ERR_MPDU_LENGTH) ||
|
|
(rxdma_err == HAL_RXDMA_ERR_OVERFLOW))) {
|
|
return QDF_STATUS_SUCCESS;
|
|
}
|
|
}
|
|
return QDF_STATUS_E_FAILURE;
|
|
}
|
|
|
|
/*
|
|
* dp_mon_reap_status - monitor status ring ppdu status
|
|
*
|
|
* dp_mon_status_no_dma - DMA not done for status ring entry
|
|
* dp_mon_status_match - status and dest ppdu id mathes
|
|
* dp_mon_status_lag - status ppdu id is lagging
|
|
* dp_mon_status_lead - status ppdu id is leading
|
|
* dp_mon_status_replenish - status ring entry is NULL
|
|
*/
|
|
enum dp_mon_reap_status {
|
|
dp_mon_status_no_dma,
|
|
dp_mon_status_match,
|
|
dp_mon_status_lag,
|
|
dp_mon_status_lead,
|
|
dp_mon_status_replenish
|
|
};
|
|
#endif /* _DP_FULL_MON_H_ */
|