--- a/bluetooth/btstack/l2cap/L2CapFecNegotiator.cpp Thu Jul 15 19:55:36 2010 +0300
+++ b/bluetooth/btstack/l2cap/L2CapFecNegotiator.cpp Thu Aug 19 11:01:00 2010 +0300
@@ -558,6 +558,14 @@
ProcessPeerValue(response, EFalse);
}
+void TL2CapIncomingFecNegotiator::DowngradeToBasic()
+ {
+ LOG_FUNC
+ iPreferred = TRetransmissionAndFlowControlOption();
+ iConfigStatus = EOptionConfigComplete;
+ }
+
+
void TL2CapIncomingFecNegotiator::BuildRequest(TL2CapChannelMode aMode, TRetransmissionAndFlowControlOption& aFecOption)
{
LOG_FUNC
@@ -761,9 +769,7 @@
iIncomingNegotiator.Preferred().LinkMode() != EL2CAPBasicMode)
{
LOG(_L("\tReceived Basic mode Config Request, downgrading incoming channel mode to Basic"));
- // Downgrade incoming FEC to be basic mode.
- TRetransmissionAndFlowControlOption basicFec;
- iIncomingNegotiator.SetPreferred(basicFec);
+ iIncomingNegotiator.DowngradeToBasic();
}
}