qcacmn: Add support to configure phy error mask
The monitor status ring is configured for filtering in undecoded phy error packets. Each phy error can be controlled using a specific error mask configuration. Added below cfg80211tool command to configure phy error mask for filtering undecoded phy error packets. cfg80211tool wifix set_phyrx_error_mask mask_0to31 mask_32to63 cfg80211tool wifix get_phyrx_error_mask Change-Id: I5e4f6a49458cc534d6d1d0f7f2a7424f3cc747b4
This commit is contained in:

committed by
Madan Koyyalamudi

szülő
e85fbce095
commit
3498dbc3a6
@@ -9630,6 +9630,40 @@ static QDF_STATUS dp_set_pdev_param(struct cdp_soc_t *cdp_soc, uint8_t pdev_id,
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
#ifdef QCA_UNDECODED_METADATA_SUPPORT
|
||||
static
|
||||
QDF_STATUS dp_set_pdev_phyrx_error_mask(struct cdp_soc_t *cdp_soc,
|
||||
uint8_t pdev_id, uint32_t mask,
|
||||
uint32_t mask_cont)
|
||||
{
|
||||
struct dp_pdev *pdev =
|
||||
dp_get_pdev_from_soc_pdev_id_wifi3((struct dp_soc *)cdp_soc,
|
||||
pdev_id);
|
||||
|
||||
if (!pdev)
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
|
||||
return dp_monitor_config_undecoded_metadata_phyrx_error_mask(pdev,
|
||||
mask, mask_cont);
|
||||
}
|
||||
|
||||
static
|
||||
QDF_STATUS dp_get_pdev_phyrx_error_mask(struct cdp_soc_t *cdp_soc,
|
||||
uint8_t pdev_id, uint32_t *mask,
|
||||
uint32_t *mask_cont)
|
||||
{
|
||||
struct dp_pdev *pdev =
|
||||
dp_get_pdev_from_soc_pdev_id_wifi3((struct dp_soc *)cdp_soc,
|
||||
pdev_id);
|
||||
|
||||
if (!pdev)
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
|
||||
return dp_monitor_get_undecoded_metadata_phyrx_error_mask(pdev,
|
||||
mask, mask_cont);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef QCA_PEER_EXT_STATS
|
||||
static void dp_rx_update_peer_delay_stats(struct dp_soc *soc,
|
||||
qdf_nbuf_t nbuf)
|
||||
@@ -12165,6 +12199,10 @@ static struct cdp_ctrl_ops dp_ops_ctrl = {
|
||||
.txrx_set_tsf_ul_delay_report = dp_set_tsf_ul_delay_report,
|
||||
.txrx_get_uplink_delay = dp_get_uplink_delay,
|
||||
#endif
|
||||
#ifdef QCA_UNDECODED_METADATA_SUPPORT
|
||||
.txrx_set_pdev_phyrx_error_mask = dp_set_pdev_phyrx_error_mask,
|
||||
.txrx_get_pdev_phyrx_error_mask = dp_get_pdev_phyrx_error_mask,
|
||||
#endif
|
||||
};
|
||||
|
||||
static struct cdp_me_ops dp_ops_me = {
|
||||
|
Reference in New Issue
Block a user