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
This commit is contained in:

committed by
Madan Koyyalamudi

parent
b69d6e0499
commit
8efe41f904
@@ -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 */
|
||||
|
Reference in New Issue
Block a user