l2cap.c (e5ac0afc45efef7688da48791f50c5a54fd91eb5) l2cap.c (ef07b2dc0f67c650b7e6175ec63d44f3244f00a9)
1/*
2 * Copyright (C) 2014 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 2135 unchanged lines hidden (view full) ---

2144 handle = little_endian_read_16(packet, 3);
2145 btstack_linked_list_iterator_init(&it, &l2cap_channels);
2146 while (btstack_linked_list_iterator_has_next(&it)){
2147 l2cap_channel_t * channel = (l2cap_channel_t *) btstack_linked_list_iterator_next(&it);
2148 if (!l2cap_is_dynamic_channel_type(channel->channel_type)) continue;
2149 if (channel->con_handle != handle) continue;
2150 log_info("remote supported features, channel %p, cid %04x - state %u", channel, channel->local_cid, channel->state);
2151 l2cap_handle_remote_supported_features_received(channel);
1/*
2 * Copyright (C) 2014 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 2135 unchanged lines hidden (view full) ---

2144 handle = little_endian_read_16(packet, 3);
2145 btstack_linked_list_iterator_init(&it, &l2cap_channels);
2146 while (btstack_linked_list_iterator_has_next(&it)){
2147 l2cap_channel_t * channel = (l2cap_channel_t *) btstack_linked_list_iterator_next(&it);
2148 if (!l2cap_is_dynamic_channel_type(channel->channel_type)) continue;
2149 if (channel->con_handle != handle) continue;
2150 log_info("remote supported features, channel %p, cid %04x - state %u", channel, channel->local_cid, channel->state);
2151 l2cap_handle_remote_supported_features_received(channel);
2152 break;
2153 }
2154 break;
2155
2156 case GAP_EVENT_SECURITY_LEVEL:
2157 handle = little_endian_read_16(packet, 2);
2158 log_info("l2cap - security level update for handle 0x%04x", handle);
2159 btstack_linked_list_iterator_init(&it, &l2cap_channels);
2160 while (btstack_linked_list_iterator_has_next(&it)){

--- 1629 unchanged lines hidden ---
2152 }
2153 break;
2154
2155 case GAP_EVENT_SECURITY_LEVEL:
2156 handle = little_endian_read_16(packet, 2);
2157 log_info("l2cap - security level update for handle 0x%04x", handle);
2158 btstack_linked_list_iterator_init(&it, &l2cap_channels);
2159 while (btstack_linked_list_iterator_has_next(&it)){

--- 1629 unchanged lines hidden ---