bluetooth/btstack/secman/btaccessrequester.cpp
branchCompilerCompatibility
changeset 11 047299a3352b
parent 8 2b6718f05bdb
child 13 20fda83a6398
child 17 907b2fb7aa8e
equal deleted inserted replaced
9:11ebbc215b05 11:047299a3352b
   537 		{
   537 		{
   538 		THCIAuthenticationRequirement authReq = EMitmNotReqGeneralBonding;
   538 		THCIAuthenticationRequirement authReq = EMitmNotReqGeneralBonding;
   539 		
   539 		
   540 		// If MITM protection is required by a service, or the device is in paired only connections mode
   540 		// If MITM protection is required by a service, or the device is in paired only connections mode
   541 		// the require MITM protection.
   541 		// the require MITM protection.
   542 		if (iRequirements.MitmProtection() != EMitmNotRequired || iSecMan.ConnectionsManager().IsAcceptPairedOnlyMode())
   542 		if (iRequirements.MitmProtection() != EMitmNotRequired)
   543 			{
   543 			{
   544 			if (iAccessType == EDedicatedBonding)
   544 			if (iAccessType == EDedicatedBonding)
   545 				{
   545 				{
   546 				authReq = EMitmReqDedicatedBonding;
   546 				authReq = EMitmReqDedicatedBonding;
   547 				}
   547 				}