From 87ff113cd70ea40e795183dceeaaf2ff6e9059d6 Mon Sep 17 00:00:00 2001 From: Srinivas Krovvidi Date: Tue, 1 Mar 2011 16:34:22 +0530 Subject: [PATCH] L2cap MTU is filled in failure case Change-Id: Ieca0e5c44fdea98dfb1029624f46e0a20b865fe7 CRs-Fixed: 275636 Signed-off-by: Srinivas Krovvidi --- net/bluetooth/l2cap_core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index 3dec7c28574..e9b20f8c3b9 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c @@ -1783,8 +1783,10 @@ done: /* Configure output options and let the other side know * which ones we don't like. */ - if (mtu < L2CAP_DEFAULT_MIN_MTU) + if (mtu < L2CAP_DEFAULT_MIN_MTU) { result = L2CAP_CONF_UNACCEPT; + pi->omtu = L2CAP_DEFAULT_MIN_MTU; + } else { pi->omtu = mtu; pi->conf_state |= L2CAP_CONF_MTU_DONE;