Other Parts Discussed in Thread: CC2540
Linux, WL1831MODGBMOCR, Using PM.
The 3rd connection is closed by the master when bonded when connecting to an iPhone 5 (10.3.3) or iPhone 5S (11.2.1). Subsequent connections after pairing also fail when using a Samsung S5 and S6 (operating system versions unknown).
I am using a fixed passkey with these settings:
pAuthRspInfo->AuthenticationAction |= DEVM_AUTHENTICATION_ACTION_LOW_ENERGY_OPERATION_MASK;
pAuthRspInfo->AuthenticationDataLength = sizeof(AuthenticationResponseInformation.AuthenticationData.LEIOCapabilities);
pAuthRspInfo->AuthenticationData.LEIOCapabilities.IO_Capability = licDisplayOnly;
pAuthRspInfo->AuthenticationData.LEIOCapabilities.Bonding_Type = lbtBonding;
pAuthRspInfo->AuthenticationData.LEIOCapabilities.MITM = FALSE;
pAuthRspInfo->AuthenticationData.LEIOCapabilities.SC = FALSE;
pAuthRspInfo->AuthenticationData.LEIOCapabilities.P256DebugMode = FALSE;
pAuthRspInfo->AuthenticationData.LEIOCapabilities.OOB_Present = FALSE;
pAuthRspInfo->AuthenticationData.LEIOCapabilities.Keypress = FALSE;
The characteristics in the service require GATM_SECURITY_PROPERTIES_UNAUTHENTICATED_ENCRYPTION_WRITE and READ.
The logs seem to indicate that the connection is being terminated because of a MIC failure that occurs during KEY exchange. Why is this happening? Have I configured something improperly?