浏览代码

qcacld-3.0: Failure to create pdev before get FW ready event received

During TDLS if SSR occurs then wlan driver is not deleting the tdls host
peer.This lead to tdls peer leak, vdev and pdev ref leak. As pdev is not
deleted after SSR new pdev create fails.

Fix is to remove tdls peer information from host driver during ssr

Change-ID: I9f4c2026821a166fbf38f658c75d93e7409141cc
CRs-Fixed: 2726083
Pankaj Singh 5 年之前
父节点
当前提交
aa9ab765bf
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      core/wma/src/wma_features.c

+ 1 - 2
core/wma/src/wma_features.c

@@ -3570,7 +3570,7 @@ int wma_update_tdls_peer_state(WMA_HANDLE handle,
 		WMA_LOGE("%s: failed to send tdls peer update state command",
 			 __func__);
 		ret = -EIO;
-		goto end_tdls_peer_state;
+		/* Fall through to delete TDLS peer for teardown */
 	}
 
 	/* in case of teardown, remove peer from fw */
@@ -3590,7 +3590,6 @@ int wma_update_tdls_peer_state(WMA_HANDLE handle,
 		if (QDF_IS_STATUS_ERROR(qdf_status)) {
 			WMA_LOGE(FL("wma_remove_peer failed"));
 			ret = -EINVAL;
-			goto end_tdls_peer_state;
 		}
 		cdp_peer_update_last_real_peer(soc, WMI_PDEV_ID_SOC,
 					       peer_state->vdev_id,