diff options
author | Szymon Janc <szymon.janc@gmail.com> | 2013-11-30 16:59:23 +0100 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2014-01-04 03:32:27 +0100 |
commit | 11bfb1c4b94fe24a83ebeae5c3310280f9606e0e (patch) | |
tree | 47bf31dd80d66b7a223d3c4c9df3228e32e06409 /net/nfc/llcp_commands.c | |
parent | NFC: llcp: Fix possible memory leak while sending I frames (diff) | |
download | linux-11bfb1c4b94fe24a83ebeae5c3310280f9606e0e.tar.xz linux-11bfb1c4b94fe24a83ebeae5c3310280f9606e0e.zip |
NFC: llcp: Use default MIU if none was specified on connect
If MIUX is not present in CONNECT or CC use default MIU value (128)
instead of one announced durring link setup.
This was affecting Bluetooth handover with Android 4.3+ NCI stack.
Signed-off-by: Szymon Janc <szymon.janc@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'net/nfc/llcp_commands.c')
-rw-r--r-- | net/nfc/llcp_commands.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/nfc/llcp_commands.c b/net/nfc/llcp_commands.c index 80057a818737..bec6ed15f503 100644 --- a/net/nfc/llcp_commands.c +++ b/net/nfc/llcp_commands.c @@ -675,7 +675,7 @@ int nfc_llcp_send_i_frame(struct nfc_llcp_sock *sock, do { remote_miu = sock->remote_miu > LLCP_MAX_MIU ? - local->remote_miu : sock->remote_miu; + LLCP_DEFAULT_MIU : sock->remote_miu; frag_len = min_t(size_t, remote_miu, remaining_len); |