qcacld-3.0: TDLS not releasing the vdev ref taken with WLAN_TDLS_NB_ID

During NAN+TDLS case, when NAN is present dut is trying
to add TDLS peer and the ref is not released which results in
assert due to obj delete timeout.

Fix is to release the ref taken properly in default handing of
tdls serialization cmd and error handling.

Change-ID: Ia1ff16fdde7f70e45b712d260c1eca372ceb947e
CRs-Fixed: 2727206
This commit is contained in:
Pankaj Singh
2020-07-08 18:47:16 +05:30
committed by nshrivas
parent b45dbd221c
commit f9b5466cb6
2 changed files with 15 additions and 46 deletions

View File

@@ -857,8 +857,10 @@ QDF_STATUS ucfg_tdls_notify_sta_disconnect(
tdls_debug("Enter ");
notify = qdf_mem_malloc(sizeof(*notify));
if (!notify)
if (!notify) {
wlan_objmgr_vdev_release_ref(notify->vdev, WLAN_TDLS_NB_ID);
return QDF_STATUS_E_NULL_VALUE;
}
*notify = *notify_info;