+ BT_RFCOMM_DEBUG(2, "-- DLCI: 0x%02X", Params->Channel.DLCI);\r
+ \r
+ /* Ignore status flags sent to the control channel */\r
+ if (Params->Channel.DLCI == RFCOMM_CONTROL_DLCI)\r
+ return;\r
+ \r
+ /* Retrieve existing channel configuration data, if already opened */\r
+ RFCOMM_Channel_t* RFCOMMChannel = RFCOMM_GetChannelData(Params->Channel.DLCI); \r
+ \r
+ /* If the channel does not exist, abort */\r
+ if (RFCOMMChannel == NULL)\r
+ return;\r
+ \r
+ /* Save the new channel signals to the channel state structure */\r
+ RFCOMMChannel->Signals = Params->Signals;\r
+ \r
+ /* If the command contains the optional break signals field, store the value */\r
+ if (CommandDataLen == sizeof(RFCOMM_MS_Parameters_t))\r
+ RFCOMMChannel->BreakSignals = Params->BreakSignals;\r
+ \r
+ struct\r
+ {\r
+ RFCOMM_Command_t CommandHeader;\r
+ uint8_t Length;\r
+ RFCOMM_MS_Parameters_t Params;\r
+ } MSResponse;\r
+\r
+ /* Fill out the MS response data */\r
+ MSResponse.CommandHeader = (RFCOMM_Command_t){.Command = RFCOMM_Control_ModemStatus, .EA = true};\r
+ MSResponse.Length = (CommandDataLen << 1) | 0x01;\r
+ MSResponse.Params = *Params;\r
+ \r
+ BT_RFCOMM_DEBUG(1, ">> MS Response");\r
+\r
+ /* Send the PDN response to acknowledge the command */\r
+ RFCOMM_SendFrame(RFCOMM_CONTROL_DLCI, false, RFCOMM_Frame_UIH, sizeof(MSResponse), &MSResponse, Channel);\r