Bluetooth: bnep: Return err value while sending cmd is not understood

Send command not understood response should be verified if it was
successfully sent, like all send responses.

Signed-off-by: Grzegorz Kolodziejczyk <grzegorz.kolodziejczyk@tieto.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:
Grzegorz Kolodziejczyk 2015-04-03 12:14:52 +02:00 committed by Marcel Holtmann
parent e213568ad6
commit e0fdbab169

View File

@ -239,7 +239,7 @@ static int bnep_rx_control(struct bnep_session *s, void *data, int len)
pkt[0] = BNEP_CONTROL; pkt[0] = BNEP_CONTROL;
pkt[1] = BNEP_CMD_NOT_UNDERSTOOD; pkt[1] = BNEP_CMD_NOT_UNDERSTOOD;
pkt[2] = cmd; pkt[2] = cmd;
bnep_send(s, pkt, sizeof(pkt)); err = bnep_send(s, pkt, sizeof(pkt));
} }
break; break;
} }