]> git.baikalelectronics.ru Git - kernel.git/commit
NFC: Keep socket alive until the DISC PDU is actually sent
authorThierry Escande <thierry.escande@linux.intel.com>
Tue, 4 Jun 2013 09:34:51 +0000 (11:34 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 14 Jun 2013 11:45:05 +0000 (13:45 +0200)
commitd16f7064efbf01075e359a5e02c3b41b87c5ea86
tree02ee0a69207c231a5bd3939ccee7021cbbaddd65
parent8adab090da5f21a24e29660f55767ce84ee458b6
NFC: Keep socket alive until the DISC PDU is actually sent

This patch keeps the socket alive and therefore does not remove
it from the sockets list in the local until the DISC PDU has been
actually sent. Otherwise we would reply with DM PDUs before sending
the DISC one.

Signed-off-by: Thierry Escande <thierry.escande@linux.intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
net/nfc/llcp.h
net/nfc/llcp_core.c
net/nfc/llcp_sock.c