qcacld-3.0: Add ini support to enable/disable ring buffer

Currently, There is no support to disable ring buffer. Each Ring
buffers is using 2MB and overall 10MB is consumed by 5 ring buffers.

Fix is to add ini support to enable/disable ring buffer.
Boolean ini CFG_ENABLE_RING_BUFFER is added. Default value of
gEnableRingBuffer is 1 which indicates that ring buffers are enabled
by default.

CRs-Fixed: 2592476
Change-Id: I30f95668de6df96e5c388e92e202f8c236132dc2
This commit is contained in:
sheenam monga
2019-12-23 18:44:31 +05:30
committed by nshrivas
parent 57ef9a3da1
commit 63736f6880
6 changed files with 69 additions and 8 deletions

View File

@@ -2319,4 +2319,17 @@ char *mlme_get_sub_reason_str(uint32_t sub_reason);
QDF_STATUS
wlan_mlme_get_mgmt_max_retry(struct wlan_objmgr_psoc *psoc,
uint8_t *max_retry);
/**
* wlan_mlme_get_status_ring_buffer() - Get the
* status of ring buffer
* @psoc: pointer to psoc object
* @enable_ring_buffer: output pointer to point the configured value of
* ring buffer
*
* Return: QDF_STATUS
*/
QDF_STATUS
wlan_mlme_get_status_ring_buffer(struct wlan_objmgr_psoc *psoc,
bool *enable_ring_buffer);
#endif /* _WLAN_MLME_API_H_ */