Bug 990428 - Do not reset mSlcConnected=false when indicator status update is disabled, f=jaliu, r=echou

This commit is contained in:
Ben Tian 2014-04-01 14:40:49 +08:00
parent ecdde13284
commit 44b29d714f

View File

@ -754,7 +754,15 @@ BluetoothHfpManager::ReceiveSocketData(BluetoothSocket* aSocket,
}
mCMER = atCommandValues[3].EqualsLiteral("1");
mSlcConnected = mCMER;
/**
* SLC is connected once the "indicator status update" is enabled by
* AT+CMER command. See 4.2.1 in Bluetooth hands-free profile 1.6
* for more details.
*/
if (mCMER) {
mSlcConnected = true;
}
// If we get internal request for SCO connection,
// setup SCO after Service Level Connection established.