]> git.baikalelectronics.ru Git - kernel.git/commit
NFC: llcp: Add cleanup support for unreplied SNL requests
authorThierry Escande <thierry.escande@linux.intel.com>
Mon, 4 Mar 2013 14:43:32 +0000 (15:43 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 10 Mar 2013 22:16:41 +0000 (23:16 +0100)
commitc6da77cabcd909281d0098ad1aef9ae9c7931a9b
tree06e02361b9563018bacd648991997aa864af904c
parentf6b990c3c8eaf0bef52f0ef7fb25b8dfc22ebeb3
NFC: llcp: Add cleanup support for unreplied SNL requests

If the remote LLC doesn't reply in time to our SNL requests we remove
them from the list of pending requests. The timeout is fixed to an
arbitrary value of 3 times remote_lto.

When not replied, the local LLC broadcasts NFC_EVENT_LLC_SDRES nl events for
the concerned uris with sap values set to LLCP_SDP_UNBOUND (which is 65).

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