l2cap.c (fe8aebe6c4e72b2e854b8c6fff289d6811d6fd85) l2cap.c (93d791b29f8b95bbe479926b8d97ef80c03fec42)
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

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

1366#endif
1367
1368#ifdef ENABLE_L2CAP_ENHANCED_RETRANSMISSION_MODE
1369 // send l2cap information request if neccessary
1370 hci_connections_get_iterator(&it);
1371 while(btstack_linked_list_iterator_has_next(&it)){
1372 hci_connection_t * connection = (hci_connection_t *) btstack_linked_list_iterator_next(&it);
1373 if (connection->l2cap_state.information_state == L2CAP_INFORMATION_STATE_W2_SEND_EXTENDED_FEATURE_REQUEST){
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

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

1366#endif
1367
1368#ifdef ENABLE_L2CAP_ENHANCED_RETRANSMISSION_MODE
1369 // send l2cap information request if neccessary
1370 hci_connections_get_iterator(&it);
1371 while(btstack_linked_list_iterator_has_next(&it)){
1372 hci_connection_t * connection = (hci_connection_t *) btstack_linked_list_iterator_next(&it);
1373 if (connection->l2cap_state.information_state == L2CAP_INFORMATION_STATE_W2_SEND_EXTENDED_FEATURE_REQUEST){
1374 if (!hci_can_send_acl_packet_now(connection->con_handle)) break;
1374 connection->l2cap_state.information_state = L2CAP_INFORMATION_STATE_W4_EXTENDED_FEATURE_RESPONSE;
1375 connection->l2cap_state.information_state = L2CAP_INFORMATION_STATE_W4_EXTENDED_FEATURE_RESPONSE;
1375 // send information request for extended features
1376 uint8_t sig_id = l2cap_next_sig_id();
1377 uint8_t info_type = L2CAP_INFO_TYPE_EXTENDED_FEATURES_SUPPORTED;
1378 l2cap_send_signaling_packet(connection->con_handle, INFORMATION_REQUEST, sig_id, info_type);
1379 return;
1380 }
1381 }
1382#endif
1383

--- 2404 unchanged lines hidden ---
1376 uint8_t sig_id = l2cap_next_sig_id();
1377 uint8_t info_type = L2CAP_INFO_TYPE_EXTENDED_FEATURES_SUPPORTED;
1378 l2cap_send_signaling_packet(connection->con_handle, INFORMATION_REQUEST, sig_id, info_type);
1379 return;
1380 }
1381 }
1382#endif
1383

--- 2404 unchanged lines hidden ---