hid_host.c (113d01ce21aa6cd2cd43087aa324436aeb97cc9c) hid_host.c (d9d6144e6fd7e81c5cf97edb194d86de1780b952)
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

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

870 switch (packet_type) {
871
872 case L2CAP_DATA_PACKET:
873 connection = hid_host_get_connection_for_l2cap_cid(channel);
874 if (!connection) break;
875
876 if (channel == connection->interrupt_cid){
877 uint8_t * in_place_event = packet - 7;
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

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

870 switch (packet_type) {
871
872 case L2CAP_DATA_PACKET:
873 connection = hid_host_get_connection_for_l2cap_cid(channel);
874 if (!connection) break;
875
876 if (channel == connection->interrupt_cid){
877 uint8_t * in_place_event = packet - 7;
878 hid_setup_report_event(connection, in_place_event, size-1);
878 hid_setup_report_event(connection, in_place_event, size);
879 hid_host_callback(HCI_EVENT_PACKET, connection->hid_cid, in_place_event, size + 7);
880 break;
881 }
882
883 if (channel == connection->control_cid){
884 hid_host_handle_control_packet(connection, packet, size);
885 break;
886 }

--- 555 unchanged lines hidden ---
879 hid_host_callback(HCI_EVENT_PACKET, connection->hid_cid, in_place_event, size + 7);
880 break;
881 }
882
883 if (channel == connection->control_cid){
884 hid_host_handle_control_packet(connection, packet, size);
885 break;
886 }

--- 555 unchanged lines hidden ---