diag_log: rough verification if response matches request

This commit is contained in:
Harald Welte 2017-01-01 11:55:48 +01:00
parent c265c1206d
commit e4204631bc
1 changed files with 3 additions and 1 deletions

View File

@ -126,7 +126,9 @@ void diag_log_enable_all_supported_family(struct diag_instance *di, uint8_t fami
}
rx = diag_transceive_msg(di, msg);
/* FIXME */
if (rx->l2h[0] != 0x53)
fprintf(stderr, "Error enabling logs for family %d\n", family);
/* FIXME: further validation of response */
msgb_free(rx);
}