diff options
author | Mat Martineau <mathewm@codeaurora.org> | 2012-05-17 23:53:53 -0400 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-06-04 23:34:05 -0400 |
commit | 273759e2c3bd69efe74799c446df69d9ea5ca418 (patch) | |
tree | 906675b52de1cfdc43e188b43f7d0cd7b54bfac7 | |
parent | 6ea0048575089e9a714e08bc3debec4b1b9d7664 (diff) |
Bluetooth: Set txwin values for streaming mode
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>
-rw-r--r-- | net/bluetooth/l2cap_core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index 288c8e660377..db59b259297f 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c | |||
@@ -2941,6 +2941,7 @@ done: | |||
2941 | break; | 2941 | break; |
2942 | 2942 | ||
2943 | case L2CAP_MODE_STREAMING: | 2943 | case L2CAP_MODE_STREAMING: |
2944 | l2cap_txwin_setup(chan); | ||
2944 | rfc.mode = L2CAP_MODE_STREAMING; | 2945 | rfc.mode = L2CAP_MODE_STREAMING; |
2945 | rfc.txwin_size = 0; | 2946 | rfc.txwin_size = 0; |
2946 | rfc.max_transmit = 0; | 2947 | rfc.max_transmit = 0; |