diff --git a/wmi/inc/wmi_unified_priv.h b/wmi/inc/wmi_unified_priv.h index ea5d37aaea81..96224ac81a82 100644 --- a/wmi/inc/wmi_unified_priv.h +++ b/wmi/inc/wmi_unified_priv.h @@ -1874,6 +1874,24 @@ struct wmi_soc { uint32_t soc_idx; }; +/** + * wmi_mtrace() - Wrappper function for qdf_mtrace api + * @message_id: 32-Bit Wmi message ID + * @vdev_id: Vdev ID + * @data: Actual message contents + * + * This function converts the 32-bit WMI message ID in 15-bit message ID + * format for qdf_mtrace as in qdf_mtrace message there are only 15 + * bits reserved for message ID. + * out of these 15-bits, 8-bits (From MSB) specifies the WMI_GRP_ID + * and remaining 7-bits specifies the actual WMI command. With this + * notation there can be maximum 256 groups and each group can have + * max 128 commands can be supported. + * + * Return: None + */ +void wmi_mtrace(uint32_t message_id, uint16_t vdev_id, uint32_t data); + void wmi_unified_register_module(enum wmi_target_type target_type, void (*wmi_attach)(wmi_unified_t wmi_handle)); void wmi_tlv_init(void); diff --git a/wmi/src/wmi_unified_tlv.c b/wmi/src/wmi_unified_tlv.c index 4f2038188e7f..f4be4fd8d44a 100644 --- a/wmi/src/wmi_unified_tlv.c +++ b/wmi/src/wmi_unified_tlv.c @@ -143,23 +143,7 @@ static inline void copy_vdev_create_pdev_id( } #endif -/** - * wmi_mtrace() - Wrappper function for qdf_mtrace api - * @message_id: 32-Bit Wmi message ID - * @vdev_id: Vdev ID - * @data: Actual message contents - * - * This function converts the 32-bit WMI message ID in 15-bit message ID - * format for qdf_mtrace as in qdf_mtrace message there are only 15 - * bits reserved for message ID. - * out of these 15-bits, 8-bits (From MSB) specifies the WMI_GRP_ID - * and remaining 7-bits specifies the actual WMI command. With this - * notation there can be maximum 256 groups and each group can have - * max 128 commands can be supported. - * - * Return: None - */ -static void wmi_mtrace(uint32_t message_id, uint16_t vdev_id, uint32_t data) +void wmi_mtrace(uint32_t message_id, uint16_t vdev_id, uint32_t data) { uint16_t mtrace_message_id; @@ -170,6 +154,8 @@ static void wmi_mtrace(uint32_t message_id, uint16_t vdev_id, uint32_t data) mtrace_message_id, vdev_id, data); } +qdf_export_symbol(wmi_mtrace); + /** * send_vdev_create_cmd_tlv() - send VDEV create command to fw * @wmi_handle: wmi handle