Signed-off-by: Bjørn Mork <bjorn@mork.no>
{
ssize_t cnt = read(u->fd, mbim_buffer, MBIM_BUFFER_SIZE);
struct mbim_message_header *hdr = (struct mbim_message_header *) mbim_buffer;
- struct command_message *msg = (struct command_message *) mbim_buffer;
+ struct command_done_message *msg = (struct command_done_message *) (hdr + 1);
int i;
if (cnt < 0)
mbim_send_close_msg();
break;
case MBIM_MESSAGE_TYPE_COMMAND_DONE:
+ if (verbose)
+ printf(" status_code: %04X\n", le32toh(msg->status_code));
return_code = current_handler->response(msg->buffer, le32toh(msg->buffer_length));
if (return_code < 0)
no_close = 0;