L2cap MTU is filled in failure case

Change-Id: Ieca0e5c44fdea98dfb1029624f46e0a20b865fe7
CRs-Fixed: 275636
Signed-off-by: Srinivas Krovvidi <skrovvid@codeaurora.org>
This commit is contained in:
Srinivas Krovvidi
2011-03-01 16:34:22 +05:30
committed by Stephen Boyd
parent e60301d173
commit 87ff113cd7

View File

@@ -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;