qcacmn: Add beacon ratelimiting

Rate-limiting will be based on number of beacons received.
When the beacon is not from connected AP, the beacons
are dropped on a percentage of received beacons and
rate limit, which is configured by the user.

CRs-Fixed: 3230508
Change-Id: Iac591c37129fda6923ef254c2950cb0bdbb44ce9
This commit is contained in:
Kani M
2022-07-07 21:16:42 +05:30
committed by Madan Koyyalamudi
parent eb56570ae1
commit c9f08ae24b
8 changed files with 294 additions and 0 deletions

View File

@@ -2993,6 +2993,18 @@ QDF_STATUS
wmi_extract_frame_pn_params(wmi_unified_t wmi_handle, void *evt_buf,
struct frame_pn_params *pn_params);
/**
* wmi_extract_is_conn_ap_frame() - extract is_conn_ap_frame param from event
* @wmi_handle: wmi handle
* @evt_buf: pointer to event buffer
* @is_conn_ap: is_conn_ap param
*
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
*/
QDF_STATUS
wmi_extract_is_conn_ap_frame(wmi_unified_t wmi_handle, void *evt_buf,
struct frm_conn_ap *is_conn_ap);
/**
* wmi_extract_vdev_roam_param() - extract vdev roam param from event
* @wmi_handle: wmi handle

View File

@@ -5749,6 +5749,7 @@ typedef enum {
#endif
wmi_service_tdls_wideband_support,
#endif
wmi_service_is_my_mgmt_frame,
wmi_services_max,
} wmi_conv_service_ids;
#define WMI_SERVICE_UNAVAILABLE 0xFFFF

View File

@@ -1885,6 +1885,10 @@ QDF_STATUS (*extract_mgmt_rx_params)(wmi_unified_t wmi_handle, void *evt_buf,
QDF_STATUS (*extract_frame_pn_params)(wmi_unified_t wmi_handle, void *evt_buf,
struct frame_pn_params *pn_params);
QDF_STATUS (*extract_is_conn_ap_frame)(wmi_unified_t wmi_handle,
void *evt_buf,
struct frm_conn_ap *is_conn_ap);
QDF_STATUS (*extract_vdev_stopped_param)(wmi_unified_t wmi_handle,
void *evt_buf, uint32_t *vdev_id);