l2cap.c (f785062493d6798957442138ebcc18359ae60d8c) l2cap.c (43d9636f05acdc511fd4df6cef54ad73faa3117f)
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

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

4140 connection->le_supervision_timeout = le_supervision_timeout;
4141 } else {
4142 connection->le_con_parameter_update_state = CON_PARAMETER_UPDATE_DENY;
4143 }
4144 connection->le_con_param_update_identifier = sig_id;
4145 }
4146
4147 event[0] = L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_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

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

4140 connection->le_supervision_timeout = le_supervision_timeout;
4141 } else {
4142 connection->le_con_parameter_update_state = CON_PARAMETER_UPDATE_DENY;
4143 }
4144 connection->le_con_param_update_identifier = sig_id;
4145 }
4146
4147 event[0] = L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST;
4148 event[1] = 8;
4148 event[1] = 10;
4149 little_endian_store_16(event, 2, handle);
4150 (void)memcpy(&event[4], &command[4], 8);
4151 l2cap_emit_event(event, sizeof(event));
4152 break;
4153
4154 case CONNECTION_PARAMETER_UPDATE_RESPONSE:
4155 // check size
4156 if (len < 2u) return 0u;

--- 1405 unchanged lines hidden ---
4149 little_endian_store_16(event, 2, handle);
4150 (void)memcpy(&event[4], &command[4], 8);
4151 l2cap_emit_event(event, sizeof(event));
4152 break;
4153
4154 case CONNECTION_PARAMETER_UPDATE_RESPONSE:
4155 // check size
4156 if (len < 2u) return 0u;

--- 1405 unchanged lines hidden ---