|
@@ -0,0 +1,61 @@
|
|
|
+/*
|
|
|
+ * Copyright (c) 2017 The Linux Foundation. All rights reserved.
|
|
|
+ *
|
|
|
+ * Permission to use, copy, modify, and/or distribute this software for
|
|
|
+ * any purpose with or without fee is hereby granted, provided that the
|
|
|
+ * above copyright notice and this permission notice appear in all
|
|
|
+ * copies.
|
|
|
+ *
|
|
|
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
|
|
|
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
|
|
|
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
|
|
|
+ * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
|
|
|
+ * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
|
|
|
+ * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
|
|
+ * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
+ * PERFORMANCE OF THIS SOFTWARE.
|
|
|
+ */
|
|
|
+
|
|
|
+/**
|
|
|
+ * DOC: wlan_hdd_data_stall_detection.c
|
|
|
+ *
|
|
|
+ * WLAN Host Device Driver Data Stall detection API implementation
|
|
|
+ */
|
|
|
+
|
|
|
+#include "wlan_hdd_data_stall_detection.h"
|
|
|
+#include "cdp_txrx_cmn.h"
|
|
|
+#include "cdp_txrx_misc.h"
|
|
|
+#include "ol_txrx_types.h"
|
|
|
+
|
|
|
+/**
|
|
|
+ * hdd_data_stall_process_cb() - Process data stall message
|
|
|
+ * @message: data stall message
|
|
|
+ *
|
|
|
+ * Process data stall message
|
|
|
+ *
|
|
|
+ * Return: void
|
|
|
+ */
|
|
|
+static void hdd_data_stall_process_cb(
|
|
|
+ struct data_stall_event_info *data_stall_info)
|
|
|
+{
|
|
|
+}
|
|
|
+
|
|
|
+int hdd_register_data_stall_detect_cb(void)
|
|
|
+{
|
|
|
+ QDF_STATUS status;
|
|
|
+ void *soc = cds_get_context(QDF_MODULE_ID_SOC);
|
|
|
+
|
|
|
+ /* Register the data stall callback */
|
|
|
+ status = cdp_data_stall_cb_register(soc, hdd_data_stall_process_cb);
|
|
|
+ return qdf_status_to_os_return(status);
|
|
|
+}
|
|
|
+
|
|
|
+int hdd_deregister_data_stall_detect_cb(void)
|
|
|
+{
|
|
|
+ QDF_STATUS status;
|
|
|
+ void *soc = cds_get_context(QDF_MODULE_ID_SOC);
|
|
|
+
|
|
|
+ /* De-Register the data stall callback */
|
|
|
+ status = cdp_data_stall_cb_deregister(soc, hdd_data_stall_process_cb);
|
|
|
+ return qdf_status_to_os_return(status);
|
|
|
+}
|