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
此提交包含在:
@@ -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
|
||||
|
新增問題並參考
封鎖使用者