forked from rubenslte/android_kernel_samsung_msm8226
Bluetooth: Correctly configure L2CAP streaming mode header type
In order to support extended window sizes with L2CAP streaming mode, an extended window size option must be included in the outgoing configuration request when an application has requested a transmit window larger than the default transmit window. Streaming mode does not have a transmit window, so initialization of the transmit window data structures was not taking place. However, the transmit window socket option does trigger use of extended headers, which are required for full streaming mode support and qualification. Utilizing the existing transmit window initialization code enables extended header use. CRs-fixed: 355437 Change-Id: I7bf25b7a70bb2b68c0f5bfd42b2b46b99d68e990 Signed-off-by: Mat Martineau <mathewm@codeaurora.org>
This commit is contained in:
@@ -3365,6 +3365,7 @@ done:
|
||||
break;
|
||||
|
||||
case L2CAP_MODE_STREAMING:
|
||||
l2cap_setup_txwin(pi);
|
||||
rfc.txwin_size = 0;
|
||||
rfc.max_transmit = 0;
|
||||
rfc.retrans_timeout = 0;
|
||||
|
||||
Reference in New Issue
Block a user