hci.c (d946a741c079334f58a4fae5b8e915afd1590c51) hci.c (cd7411deb4e98dc578ea7a141559755989399124)
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

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

3285
3286 // handle cancelled outgoing connection
3287 // "If the cancellation was successful then, after the Command Complete event for the LE_Create_Connection_Cancel command,
3288 // either an LE Connection Complete or an LE Enhanced Connection Complete event shall be generated.
3289 // In either case, the event shall be sent with the error code Unknown Connection Identifier (0x02)."
3290 if (status == ERROR_CODE_UNKNOWN_CONNECTION_IDENTIFIER){
3291 // reset state
3292 hci_stack->le_connecting_state = LE_CONNECTING_IDLE;
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

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

3285
3286 // handle cancelled outgoing connection
3287 // "If the cancellation was successful then, after the Command Complete event for the LE_Create_Connection_Cancel command,
3288 // either an LE Connection Complete or an LE Enhanced Connection Complete event shall be generated.
3289 // In either case, the event shall be sent with the error code Unknown Connection Identifier (0x02)."
3290 if (status == ERROR_CODE_UNKNOWN_CONNECTION_IDENTIFIER){
3291 // reset state
3292 hci_stack->le_connecting_state = LE_CONNECTING_IDLE;
3293 hci_stack->le_connecting_request = LE_CONNECTING_IDLE;
3294 // get outgoing connection conn struct for direct connect
3295 conn = gap_get_outgoing_connection();
3296 }
3297
3298 // outgoing le connection establishment is done
3299 if (conn){
3300 // remove entry
3301 btstack_linked_list_remove(&hci_stack->connections, (btstack_linked_item_t *) conn);

--- 7207 unchanged lines hidden ---
3293 // get outgoing connection conn struct for direct connect
3294 conn = gap_get_outgoing_connection();
3295 }
3296
3297 // outgoing le connection establishment is done
3298 if (conn){
3299 // remove entry
3300 btstack_linked_list_remove(&hci_stack->connections, (btstack_linked_item_t *) conn);

--- 7207 unchanged lines hidden ---