qcacld-3.0: Add change to replace free connect request API
In current scenario mlo_free_connect_ies() and qdf_mem_free() use to free up connect request and sub memory. Similarly wlan_cm_free_connect_req_param() also free up the connect request and its sub memory. So replace mlo_free_connect_ies() and qdf_mem_free() with wlan_cm_free_connect_req(). Also replace mlo_free_connect_ies() with wlan_cm_free_connect_req_param() to avoid code duplication. Change-Id: I37a930c3b7e63eaa8b9df9433fdc25b25d562a3c CRs-Fixed: 3554198
This commit is contained in:

committato da
Rahul Choudhary

parent
2e488c3793
commit
c9520ce773
@@ -1028,8 +1028,7 @@ mlo_roam_validate_req(struct wlan_objmgr_vdev *vdev,
|
||||
}
|
||||
copied_conn_req_lock_acquire(sta_ctx);
|
||||
if (sta_ctx->copied_conn_req) {
|
||||
mlo_free_connect_ies(sta_ctx->copied_conn_req);
|
||||
qdf_mem_free(sta_ctx->copied_conn_req);
|
||||
wlan_cm_free_connect_req(sta_ctx->copied_conn_req);
|
||||
sta_ctx->copied_conn_req = NULL;
|
||||
}
|
||||
copied_conn_req_lock_release(sta_ctx);
|
||||
@@ -1144,7 +1143,7 @@ mlo_roam_prepare_and_send_link_connect_req(struct wlan_objmgr_vdev *assoc_vdev,
|
||||
sta_ctx->copied_conn_req = qdf_mem_malloc(
|
||||
sizeof(struct wlan_cm_connect_req));
|
||||
else
|
||||
mlo_free_connect_ies(sta_ctx->copied_conn_req);
|
||||
wlan_cm_free_connect_req_param(sta_ctx->copied_conn_req);
|
||||
|
||||
mlo_debug("MLO_ROAM: storing from roam connect rsp to connect req");
|
||||
if (sta_ctx->copied_conn_req) {
|
||||
|
Fai riferimento in un nuovo problema
Block a user