瀏覽代碼

qcacmn: update error code for cdp_ppesds_entry_attach

if ppeds ops is not set then return not supported
error code.

Change-Id: Ib34018e97fef4f189e60c6349cab370a77a0b939
CRs-Fixed: 3362408
Nitin Shetty 2 年之前
父節點
當前提交
07a80655a8
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      dp/inc/cdp_txrx_ppe.h

+ 2 - 2
dp/inc/cdp_txrx_ppe.h

@@ -33,7 +33,7 @@ QDF_STATUS cdp_ppesds_entry_attach(struct cdp_soc_t *soc, uint8_t vdev_id,
 	if (!soc || !soc->ops || !soc->ops->ppeds_ops) {
 		QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
 			  "%s invalid instance", __func__);
-		return QDF_STATUS_E_INVAL;
+		return QDF_STATUS_E_NOSUPPORT;
 	}
 
 	if (soc->ops->ppeds_ops->ppeds_entry_attach)
@@ -41,7 +41,7 @@ QDF_STATUS cdp_ppesds_entry_attach(struct cdp_soc_t *soc, uint8_t vdev_id,
 							       vpai,
 							       ppe_vp_num);
 
-	return QDF_STATUS_E_NOSUPPORT;
+	return QDF_STATUS_E_INVAL;
 }
 
 /**