Browse Source

qcacmn: Fix driver initialization due to issues in pktlog init

Currently pktlog is available only for WIN. The pktlog APIs
return negative error code for MCL implementation since they
are not available, causing the regression.

CRs-Fixed: 2074614
Change-Id: I830181233fb6fe0d6299c42f2ccd27b6d894857f
Ravi Joshi 7 năm trước cách đây
mục cha
commit
c05a6a163c
1 tập tin đã thay đổi với 5 bổ sung5 xóa
  1. 5 5
      dp/wifi3.0/dp_internal.h

+ 5 - 5
dp/wifi3.0/dp_internal.h

@@ -316,14 +316,14 @@ static inline int dp_wdi_event_unsub(struct cdp_pdev *txrx_pdev_handle,
 	void *event_cb_sub_handle,
 	uint32_t event)
 {
-	return -EPERM;
+	return 0;
 }
 
 static inline int dp_wdi_event_sub(struct cdp_pdev *txrx_pdev_handle,
 	void *event_cb_sub_handle,
 	uint32_t event)
 {
-	return -EPERM;
+	return 0;
 }
 
 static inline void dp_wdi_event_handler(enum WDI_EVENT event, void *soc,
@@ -334,18 +334,18 @@ static inline void dp_wdi_event_handler(enum WDI_EVENT event, void *soc,
 
 static inline int dp_wdi_event_attach(struct dp_pdev *txrx_pdev)
 {
-	return -EPERM;
+	return 0;
 }
 
 static inline int dp_wdi_event_detach(struct dp_pdev *txrx_pdev)
 {
-	return -EPERM;
+	return 0;
 }
 
 static inline int dp_set_pktlog_wifi3(struct dp_pdev *pdev, uint32_t event,
 	bool enable)
 {
-	return -EPERM;
+	return 0;
 }
 #endif /* CONFIG_WIN */
 #endif /* #ifndef _DP_INTERNAL_H_ */