hci.c (aa2fe98645df209d36d57ac7f6f046227b0e9456) hci.c (f3aafff11f5dc797a1fd6535d7c95c3da55efe49)
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

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

2938
2939 case HCI_EVENT_SIMPLE_PAIRING_COMPLETE:
2940 hci_event_simple_pairing_complete_get_bd_addr(packet, addr);
2941 conn = hci_connection_for_bd_addr_and_type(addr, BD_ADDR_TYPE_ACL);
2942 if (!conn) break;
2943
2944 // treat successfully paired connection as authenticated
2945 if (hci_event_simple_pairing_complete_get_status(packet) == ERROR_CODE_SUCCESS){
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

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

2938
2939 case HCI_EVENT_SIMPLE_PAIRING_COMPLETE:
2940 hci_event_simple_pairing_complete_get_bd_addr(packet, addr);
2941 conn = hci_connection_for_bd_addr_and_type(addr, BD_ADDR_TYPE_ACL);
2942 if (!conn) break;
2943
2944 // treat successfully paired connection as authenticated
2945 if (hci_event_simple_pairing_complete_get_status(packet) == ERROR_CODE_SUCCESS){
2946 conn->authentication_flags |= conn->authentication_flags |= AUTH_FLAG_CONNECTION_AUTHENTICATED;
2946 conn->authentication_flags |= AUTH_FLAG_CONNECTION_AUTHENTICATED;
2947 }
2948
2949 hci_pairing_complete(conn, hci_event_simple_pairing_complete_get_status(packet));
2950 break;
2951#endif
2952
2953 // HCI_EVENT_DISCONNECTION_COMPLETE
2954 // has been split, to first notify stack before shutting connection down

--- 3840 unchanged lines hidden ---
2947 }
2948
2949 hci_pairing_complete(conn, hci_event_simple_pairing_complete_get_status(packet));
2950 break;
2951#endif
2952
2953 // HCI_EVENT_DISCONNECTION_COMPLETE
2954 // has been split, to first notify stack before shutting connection down

--- 3840 unchanged lines hidden ---