};\r
\r
typedef struct {\r
- u16 entry_size; // the size of payload excluding the header. \r
+ u16 entry_size; // the size of payload excluding the header.\r
u8 flags;\r
u8 type; // Entry type\r
u64 timestamp; //present if has_timestamp bit is set.\r
wifi_error wifi_get_ring_buffers_status(wifi_request_id id,\r
wifi_interface_handle iface, u32 *num_rings, wifi_ring_buffer_status **status);\r
\r
+/* Upper layer has to free the memory indicated by buffer pointer */\r
+typedef struct {\r
+ void (*on_firmware_memory_dump) (wifi_request_id id, char *buffer, int buffer_size);\r
+} wifi_firmware_memory_dump_handler;\r
+\r
+\r
/* api to collect a firmware memory dump for a given iface */\r
wifi_error wifi_get_firmware_memory_dump(wifi_request_id id,\r
- wifi_interface_handle iface, char **buffer, int *buffer_size);\r
+ wifi_interface_handle iface, wifi_firmware_memory_dump_handler handler);\r
\r
/* api to collect a firmware version string */\r
wifi_error wifi_get_firmware_version(wifi_request_id id,\r
WIFI_LOGGER_VERBOSE_SUPPORTED = (1 << (5)), // verbose log of FW\r
WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED = (1 << (6)) // monitor the health of FW\r
};\r
-wifi_error wifi_get_logger_supported_feature_set(wifi_interface_handle handle, unsigned int *support);\r
+wifi_error wifi_get_logger_supported_feature_set(wifi_request_id id, wifi_interface_handle iface, unsigned int *support);\r
\r
\r
#ifdef __cplusplus\r