qcacld-3.0: Enhance the dequeue logic to limit logs per second

Restrict the dequeue logic to send only 20 logs per second
to userspace. Add check to see if queue is empty before
trying to dequeue.

Change-Id: I778556c649d123718cf76c943c5b2ed7f6c6e8e5
CRs-Fixed: 3014554
This commit is contained in:
Pragaspathi Thilagaraj
2021-09-07 00:26:59 +05:30
committed by Madan Koyyalamudi
parent 612fe2eca2
commit c575e2a228
3 changed files with 56 additions and 17 deletions

View File

@@ -93,34 +93,18 @@ struct pwr_channel_info {
int8_t max_tx_pwr;
};
#ifdef WLAN_FEATURE_CONNECTIVITY_LOGGING
/**
* struct wlan_mlme_logging - Data structures related to the logging
* to userspace infrastructure
* @user_log: Log to userspace periodic work. This work will be rescheduled
* every 1 sec.
*/
struct wlan_mlme_logging {
struct qdf_periodic_work logging_work;
};
#endif
/**
* struct wlan_mlme_psoc_ext_obj -MLME ext psoc priv object
* @cfg: cfg items
* @rso_tx_ops: Roam Tx ops to send roam offload commands to firmware
* @rso_rx_ops: Roam Rx ops to receive roam offload events from firmware
* @wfa_testcmd: WFA config tx ops to send to FW
* @logger_data: Logging related periodic work data
*/
struct wlan_mlme_psoc_ext_obj {
struct wlan_mlme_cfg cfg;
struct wlan_cm_roam_tx_ops rso_tx_ops;
struct wlan_cm_roam_rx_ops rso_rx_ops;
struct wlan_mlme_wfa_cmd wfa_testcmd;
#ifdef WLAN_FEATURE_CONNECTIVITY_LOGGING
struct wlan_mlme_logging logger_data;
#endif
};
/**