瀏覽代碼

qcacld-3.0: Update htc_endpoint only for htt tx endpoint

Update htc_endpoint only for htt tx endpoint to avoid
double freeing of Tx Queue packets as it will be
freed in htt_htc_misc_pkt_pool_free.
Rename htc_endpoint to htc_htt_tx_endpoint to reflect
it's appropriate use.

Change-Id: I736ba08505acc829eb15be30538553dd945695f6
CRs-Fixed: 1006498
Nirav Shah 9 年之前
父節點
當前提交
24e697ff3e
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      core/dp/htt/htt.c

+ 2 - 1
core/dp/htt/htt.c

@@ -434,9 +434,10 @@ int htt_update_endpoint(struct htt_pdev_t *pdev,
 		QDF_BUG(service_id == HTT_DATA_MSG_SVC);
 
 		pdev->htc_tx_endpoint = ep;
+		hif_save_htc_htt_config_endpoint(hif_ctx, ep);
 		rc = 1;
 	}
-		return rc;
+	return rc;
 }
 
 int htt_htc_attach(struct htt_pdev_t *pdev, uint16_t service_id)