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:
committed by
Stephen Boyd
parent
e60301d173
commit
87ff113cd7
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user