|
@@ -1,5 +1,5 @@
|
|
/*
|
|
/*
|
|
- * Copyright (c) 2012-2018 The Linux Foundation. All rights reserved.
|
|
|
|
|
|
+ * Copyright (c) 2012-2019 The Linux Foundation. All rights reserved.
|
|
*
|
|
*
|
|
* Permission to use, copy, modify, and/or distribute this software for
|
|
* Permission to use, copy, modify, and/or distribute this software for
|
|
* any purpose with or without fee is hereby granted, provided that the
|
|
* any purpose with or without fee is hereby granted, provided that the
|
|
@@ -148,7 +148,7 @@ wdi_event_sub(struct cdp_pdev *ppdev,
|
|
return A_OK;
|
|
return A_OK;
|
|
}
|
|
}
|
|
|
|
|
|
-A_STATUS
|
|
|
|
|
|
+int
|
|
wdi_event_unsub(struct cdp_pdev *ppdev,
|
|
wdi_event_unsub(struct cdp_pdev *ppdev,
|
|
void *pevent_cb_sub, uint32_t event)
|
|
void *pevent_cb_sub, uint32_t event)
|
|
{
|
|
{
|
|
@@ -164,7 +164,7 @@ wdi_event_unsub(struct cdp_pdev *ppdev,
|
|
if (!event_cb_sub) {
|
|
if (!event_cb_sub) {
|
|
QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_ERROR,
|
|
QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_ERROR,
|
|
"Invalid callback in %s", __func__);
|
|
"Invalid callback in %s", __func__);
|
|
- return A_ERROR;
|
|
|
|
|
|
+ return -EINVAL;
|
|
}
|
|
}
|
|
if (!event_cb_sub->priv.prev) {
|
|
if (!event_cb_sub->priv.prev) {
|
|
txrx_pdev->wdi_event_list[event_index] =
|
|
txrx_pdev->wdi_event_list[event_index] =
|
|
@@ -177,7 +177,7 @@ wdi_event_unsub(struct cdp_pdev *ppdev,
|
|
|
|
|
|
/* qdf_mem_free(event_cb_sub); */
|
|
/* qdf_mem_free(event_cb_sub); */
|
|
|
|
|
|
- return A_OK;
|
|
|
|
|
|
+ return 0;
|
|
}
|
|
}
|
|
|
|
|
|
A_STATUS wdi_event_attach(struct ol_txrx_pdev_t *txrx_pdev)
|
|
A_STATUS wdi_event_attach(struct ol_txrx_pdev_t *txrx_pdev)
|