aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo F. Padovan <padovan@profusion.mobi>2011-01-24 13:01:43 -0500
committerGustavo F. Padovan <padovan@profusion.mobi>2011-02-07 22:40:04 -0500
commit7990681c409e8a31eac122342e64da6c3b77a249 (patch)
treeb596f7ffe7cedf65d68dda41520a329a7314bac3
parente702112ff68a554bcac16bb03ddc2b8e5425bcbf (diff)
Bluetooth: Fix setting of MTU for ERTM and Streaming Mode
The desired MTU should be sent in an Config_Req for all modes. Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
-rw-r--r--net/bluetooth/l2cap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c
index 4bf98dfd24bc..cbaa7409d877 100644
--- a/net/bluetooth/l2cap.c
+++ b/net/bluetooth/l2cap.c
@@ -2569,11 +2569,11 @@ static int l2cap_build_conf_req(struct sock *sk, void *data)
2569 } 2569 }
2570 2570
2571done: 2571done:
2572 if (pi->imtu != L2CAP_DEFAULT_MTU)
2573 l2cap_add_conf_opt(&ptr, L2CAP_CONF_MTU, 2, pi->imtu);
2574
2572 switch (pi->mode) { 2575 switch (pi->mode) {
2573 case L2CAP_MODE_BASIC: 2576 case L2CAP_MODE_BASIC:
2574 if (pi->imtu != L2CAP_DEFAULT_MTU)
2575 l2cap_add_conf_opt(&ptr, L2CAP_CONF_MTU, 2, pi->imtu);
2576
2577 if (!(pi->conn->feat_mask & L2CAP_FEAT_ERTM) && 2577 if (!(pi->conn->feat_mask & L2CAP_FEAT_ERTM) &&
2578 !(pi->conn->feat_mask & L2CAP_FEAT_STREAMING)) 2578 !(pi->conn->feat_mask & L2CAP_FEAT_STREAMING))
2579 break; 2579 break;