From c09518b91ef19d1a36f4af35c5a50753955a14fb Mon Sep 17 00:00:00 2001 From: Soumya Bhat Date: Tue, 20 Dec 2016 14:27:03 +0530 Subject: [PATCH] qcacmn: Add wrapper for WMI event registration Add wrapper to make WMI layer agnostic to the context in which the WMI registered event handler should execute. Change-Id: I3b8b4621cfa8d816188fdc5c688bce94528eca59 CRs-Fixed: 1096016 --- wmi_unified_api.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wmi_unified_api.h b/wmi_unified_api.h index ef5cd6d2ad..23da9c7db5 100644 --- a/wmi_unified_api.h +++ b/wmi_unified_api.h @@ -65,6 +65,11 @@ typedef qdf_nbuf_t wmi_buf_t; #define WMI_LOGA(args ...) #endif +/* wrapper to keep WMI agnostic of event handler execution context */ +#define wmi_unified_register_event(wmi_handle, event_id, handler_func) \ + wmi_unified_register_event_handler(wmi_handle, \ + event_id, handler_func, WMI_RX_UMAC_CTX) + /** * struct wmi_ops - service callbacks to upper layer * @service_ready_cbk: service ready callback