From 8efe41f90423e1dbf8cfa3c20ec4c5f5efdf249c Mon Sep 17 00:00:00 2001 From: Sai Rupesh Chevuru Date: Wed, 15 Sep 2021 14:33:14 +0530 Subject: [PATCH] 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 kernel indicating the allocation flags which is used by the kernel 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 kernel. Change-Id: I39ade12bd3603acf622a9ca49b4d1d0b79da4585 CRs-Fixed: 3037225 --- os_if/linux/mlme/src/osif_cm_connect_rsp.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/os_if/linux/mlme/src/osif_cm_connect_rsp.c b/os_if/linux/mlme/src/osif_cm_connect_rsp.c index 5b6c1c6429..9c2dd69ff3 100644 --- a/os_if/linux/mlme/src/osif_cm_connect_rsp.c +++ b/os_if/linux/mlme/src/osif_cm_connect_rsp.c @@ -629,11 +629,13 @@ static void osif_indcate_connect_results(struct wlan_objmgr_vdev *vdev, cfg80211_connect_result( osif_priv->wdev->netdev, rsp->bssid.bytes, req_ptr, req_len, - rsp_ptr, rsp_len, status, GFP_KERNEL); + rsp_ptr, rsp_len, status, + qdf_mem_malloc_flags()); } else { cfg80211_connect_result(osif_priv->wdev->netdev, rsp->bssid.bytes, req_ptr, req_len, - rsp_ptr, rsp_len, status, GFP_KERNEL); + rsp_ptr, rsp_len, status, + qdf_mem_malloc_flags()); } } #else /* WLAN_FEATURE_11BE_MLO_ADV_FEATURE */ @@ -668,12 +670,13 @@ static void osif_indcate_connect_results(struct wlan_objmgr_vdev *vdev, cfg80211_connect_result(tmp_osif_priv->wdev->netdev, macaddr.bytes, req_ptr, req_len, rsp_ptr, rsp_len, - status, GFP_KERNEL); + status, qdf_mem_malloc_flags()); } } else { cfg80211_connect_result(osif_priv->wdev->netdev, rsp->bssid.bytes, req_ptr, req_len, - rsp_ptr, rsp_len, status, GFP_KERNEL); + rsp_ptr, rsp_len, status, + qdf_mem_malloc_flags()); } } #endif /* WLAN_FEATURE_11BE_MLO_ADV_FEATURE */