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>
This commit is contained in:
committed by
Samuel Ortiz
parent
58e3dd1558
commit
17f7ae16ae
@@ -19,6 +19,7 @@
|
||||
|
||||
enum llcp_state {
|
||||
LLCP_CONNECTED = 1, /* wait_for_packet() wants that */
|
||||
LLCP_DISCONNECTING,
|
||||
LLCP_CLOSED,
|
||||
LLCP_BOUND,
|
||||
LLCP_LISTEN,
|
||||
|
||||
Reference in New Issue
Block a user