Sfoglia il codice sorgente

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
Sai Rupesh Chevuru 3 anni fa
parent
commit
8efe41f904
1 ha cambiato i file con 7 aggiunte e 4 eliminazioni
  1. 7 4
      os_if/linux/mlme/src/osif_cm_connect_rsp.c

+ 7 - 4
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 */