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)
commit17f7ae16aef1f58bc4af4c7a16b8778a91a30255
tree02ee0a69207c231a5bd3939ccee7021cbbaddd65
parent58e3dd1558f56e95e7077a63340bb33e7aa42946
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