hci.c (1e122704da706fe6f6e7962238c74ace752f594d) | hci.c (c3898ca4c0fec8c0eb3175960a2040ea4cb348a0) |
---|---|
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 --- 2764 unchanged lines hidden (view full) --- 2773 int update_parameter = gap_connection_parameter_range_included(&existing_range, le_conn_interval_min, le_conn_interval_max, le_conn_latency, le_supervision_timeout); 2774 if (update_parameter){ 2775 conn->le_con_parameter_update_state = CON_PARAMETER_UPDATE_REPLY; 2776 conn->le_conn_interval_min = le_conn_interval_min; 2777 conn->le_conn_interval_max = le_conn_interval_max; 2778 conn->le_conn_latency = le_conn_latency; 2779 conn->le_supervision_timeout = le_supervision_timeout; 2780 } else { | 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 --- 2764 unchanged lines hidden (view full) --- 2773 int update_parameter = gap_connection_parameter_range_included(&existing_range, le_conn_interval_min, le_conn_interval_max, le_conn_latency, le_supervision_timeout); 2774 if (update_parameter){ 2775 conn->le_con_parameter_update_state = CON_PARAMETER_UPDATE_REPLY; 2776 conn->le_conn_interval_min = le_conn_interval_min; 2777 conn->le_conn_interval_max = le_conn_interval_max; 2778 conn->le_conn_latency = le_conn_latency; 2779 conn->le_supervision_timeout = le_supervision_timeout; 2780 } else { |
2781 conn->le_con_parameter_update_state = CON_PARAMETER_UPDATE_DENY; | 2781 conn->le_con_parameter_update_state = CON_PARAMETER_UPDATE_NEGATIVE_REPLY; |
2782 } 2783 } 2784 break; 2785#ifdef ENABLE_LE_LIMIT_ACL_FRAGMENT_BY_MAX_OCTETS 2786 case HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE: 2787 handle = hci_subevent_le_data_length_change_get_connection_handle(packet); 2788 conn = hci_connection_for_handle(handle); 2789 if (conn) { --- 3336 unchanged lines hidden --- | 2782 } 2783 } 2784 break; 2785#ifdef ENABLE_LE_LIMIT_ACL_FRAGMENT_BY_MAX_OCTETS 2786 case HCI_SUBEVENT_LE_DATA_LENGTH_CHANGE: 2787 handle = hci_subevent_le_data_length_change_get_connection_handle(packet); 2788 conn = hci_connection_for_handle(handle); 2789 if (conn) { --- 3336 unchanged lines hidden --- |