diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2012-06-22 16:48:11 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-07-10 00:42:17 +0400 |
commit | cbbf472181bd5d6229decda96b34b0c2bbcb3050 (patch) | |
tree | 152e06ea436fcc419af1604a2f118f6be0ff33c9 /net/nfc/llcp/llcp.h | |
parent | 4d22ea1532ba5730b665343e513d813c108c84ff (diff) | |
download | linux-cbbf472181bd5d6229decda96b34b0c2bbcb3050.tar.xz |
NFC: Release LLCP SAP when the owner is released
The LLCP SAP should only be freed when the socket owning it is released.
As long as the socket is alive, the SAP should be reserved in order to
e.g. send the right wks array when bringing the MAC up.
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'net/nfc/llcp/llcp.h')
-rw-r--r-- | net/nfc/llcp/llcp.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/nfc/llcp/llcp.h b/net/nfc/llcp/llcp.h index 7286c86982ff..374cc4779af4 100644 --- a/net/nfc/llcp/llcp.h +++ b/net/nfc/llcp/llcp.h @@ -113,6 +113,9 @@ struct nfc_llcp_sock { /* Is the remote peer ready to receive */ u8 remote_ready; + /* Reserved source SAP */ + u8 reserved_ssap; + struct sk_buff_head tx_queue; struct sk_buff_head tx_pending_queue; struct sk_buff_head tx_backlog_queue; |