qcacmn: Free memory on connect failure

Currently, the check to free the original connect req when connection
fails is specific to MLO connection. Update the check to free on a
failed legacy connection as well.

Change-Id: I168d0555fecabf31c4702e382f2bd4bd63a15839
CRs-fixed: 3081248
This commit is contained in:
Lincoln Tran
2021-11-23 16:51:24 -08:00
committed by Madan Koyyalamudi
szülő eb82e858a6
commit da5f535c52

Fájl megtekintése

@@ -678,14 +678,12 @@ void mlo_sta_link_connect_notify(struct wlan_objmgr_vdev *vdev,
if (mlo_dev_ctx)
sta_ctx = mlo_dev_ctx->sta_ctx;
if (wlan_cm_is_vdev_disconnected(vdev) &&
vdev == mlo_get_assoc_link_vdev(mlo_dev_ctx)) {
if (wlan_cm_is_vdev_disconnected(vdev)) {
if (sta_ctx && sta_ctx->orig_conn_req) {
mlo_free_connect_ies(sta_ctx->orig_conn_req);
qdf_mem_free(sta_ctx->orig_conn_req);
sta_ctx->orig_conn_req = NULL;
}
return;
}
if (wlan_vdev_mlme_is_mlo_vdev(vdev)) {