qcacmn: Call cfg80211 functions with context aware allocation flags

There are instances in the code where the response is sent from the
driver to the supplicant indicating the allocation flags which is
used by the supplicant to allocate memory.

In those situations, we should pass the allocation flags based on
the context in which the response is sent.

Send the response with the right allocation flags to the supplicant.

Change-Id: I85f1c29fc66ba51a9f9c645692712c3a25b7fed1
CRs-Fixed: 2987552
此提交包含在:
Vivek
2021-07-21 23:40:29 +05:30
提交者 Madan Koyyalamudi
父節點 5ee593e754
當前提交 f8167f4dbc
共有 5 個檔案被更改,包括 37 行新增22 行删除

查看文件

@@ -330,6 +330,17 @@ void qdf_mem_multi_pages_free(qdf_device_t osdev,
#endif /* MEMORY_DEBUG */
/**
* qdf_mem_malloc_flags: Get mem allocation flags
*
* Return the flag to be use for memory allocation
* based on the context
*
* Returns: Based on the context, returns the GFP flag
* for memory alloaction
*/
int qdf_mem_malloc_flags(void);
/**
* qdf_prealloc_disabled_config_get() - Get the user configuration of
* prealloc_disabled