NFC: llcp: Use localy stored remote_miu value if not set at socket level
If remote_miu value is not set in the socket (i.e. connection-less socket) the value stored in the local is used. 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
098dafcfb4
commit
66cbfa10f3
@@ -934,7 +934,7 @@ struct sock *nfc_llcp_sock_alloc(struct socket *sock, int type, gfp_t gfp)
|
||||
llcp_sock->rw = LLCP_MAX_RW + 1;
|
||||
llcp_sock->miux = cpu_to_be16(LLCP_MAX_MIUX + 1);
|
||||
llcp_sock->remote_rw = LLCP_DEFAULT_RW;
|
||||
llcp_sock->remote_miu = LLCP_DEFAULT_MIU;
|
||||
llcp_sock->remote_miu = LLCP_MAX_MIU + 1;
|
||||
llcp_sock->send_n = llcp_sock->send_ack_n = 0;
|
||||
llcp_sock->recv_n = llcp_sock->recv_ack_n = 0;
|
||||
llcp_sock->remote_ready = 1;
|
||||
|
Reference in New Issue
Block a user