3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 14:49:24 +01:00

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

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;
}