Browse Source

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
Soumya Bhat 8 years ago
parent
commit
b141f8dcac
1 changed files with 5 additions and 0 deletions
  1. 5 0
      wmi/inc/wmi_unified_api.h

+ 5 - 0
wmi/inc/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