- uint16_t CurrentChannelNumber = ((SearchBySource) ? CurrentChannelStructure->RemoteNumber : CurrentChannelStructure->LocalNumber);\r
- \r
- if (CurrentChannelNumber == ChannelNumber)\r
- return CurrentChannelStructure;\r
- }\r
-\r
- return NULL;\r
-}\r
-\r
-Bluetooth_Channel_t* Bluetooth_InitChannelData(uint16_t RemoteChannelNumber, uint16_t PSM)\r
-{\r
- Bluetooth_Channel_t* CurrentChannelStructure;\r
-\r
- for (uint8_t i = 0; i < BLUETOOTH_MAX_OPEN_CHANNELS; i++)\r
- {\r
- CurrentChannelStructure = &Bluetooth_Connection.Channels[i];\r
+ /* Fetch the channel number that is to be matched against from the current channel information struct */\r
+ uint16_t SearchChannelNumber = (SearchByRemoteChannel) ? ChannelData->RemoteNumber : ChannelData->LocalNumber;\r