From c05a6a163cf8090002e684df21482ca648f52d83 Mon Sep 17 00:00:00 2001 From: Ravi Joshi Date: Tue, 11 Jul 2017 10:51:54 -0700 Subject: [PATCH] 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 --- dp/wifi3.0/dp_internal.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dp/wifi3.0/dp_internal.h b/dp/wifi3.0/dp_internal.h index d7035446cf35..62f3fef34105 100644 --- a/dp/wifi3.0/dp_internal.h +++ b/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_ */