+ Bluetooth_SendHCICommand(&HCICommandHeader, &PINCodeRequestParams, sizeof(BT_HCICommand_PinCodeResp_t));\r
+\r
+ Bluetooth_HCIProcessingState = Bluetooth_ProcessEvents;\r
+ break;\r
+ case Bluetooth_Conn_SendLinkKeyNAK:\r
+ BT_HCI_DEBUG(1, "# Send Link Key NAK", NULL);\r
+\r
+ HCICommandHeader = (BT_HCICommand_Header_t)\r
+ {\r
+ OpCode: {OGF: OGF_LINK_CONTROL, OCF: OCF_LINK_CONTROL_LINK_KEY_REQUEST_NEG_REPLY},\r
+ ParameterLength: sizeof(BT_HCICommand_LinkKeyNAKResp_t),\r
+ };\r
+\r
+ /* Copy over the temporary BT device address saved from the Link Key Request event */\r
+ BT_HCICommand_LinkKeyNAKResp_t LinkKeyNAKParams;\r
+ memcpy(LinkKeyNAKParams.RemoteAddress, Bluetooth_TempDeviceAddress, sizeof(LinkKeyNAKParams.RemoteAddress));\r
+\r
+ /* Send the command to transmit the link key NAK to the receiver */\r
+ Bluetooth_SendHCICommand(&HCICommandHeader, &LinkKeyNAKParams, sizeof(BT_HCICommand_LinkKeyNAKResp_t));\r