dpp: print error if CMD_FRAME fails

This commit is contained in:
James Prestwood 2022-04-15 09:59:19 -07:00 committed by Denis Kenzior
parent 07197e24fc
commit 14217e6ca4
1 changed files with 3 additions and 2 deletions

View File

@ -282,9 +282,10 @@ static void dpp_free(struct dpp_sm *dpp)
static void dpp_send_frame_cb(struct l_genl_msg *msg, void *user_data)
{
struct dpp_sm *dpp = user_data;
int err = l_genl_msg_get_error(msg);
if (l_genl_msg_get_error(msg) < 0) {
l_error("Error sending frame");
if (err < 0) {
l_error("Error sending frame (%d)", err);
return;
}