Bluetooth: Set txwin values for streaming mode
authorMat Martineau <mathewm@codeaurora.org>
Fri, 18 May 2012 03:53:53 +0000 (20:53 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Tue, 5 Jun 2012 03:34:05 +0000 (06:34 +0300)
The transmit window values must be configured for streaming mode, even
though streaming mode does not have a window.  This enables use of
extended headers when the transmit window socket option is set to 64
or larger.

Signed-off-by: Mat Martineau <mathewm@codeaurora.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/l2cap_core.c

index 288c8e660377b9314247b7c7197d318d92976856..db59b259297f62d5e1a1b2e2750de0ca4fcf5736 100644 (file)
@@ -2941,6 +2941,7 @@ done:
                break;
 
        case L2CAP_MODE_STREAMING:
+               l2cap_txwin_setup(chan);
                rfc.mode            = L2CAP_MODE_STREAMING;
                rfc.txwin_size      = 0;
                rfc.max_transmit    = 0;