bnep.c (0e2df43f5cbae3fc71139523458b98f30307d21b) | bnep.c (bef9a6fc8aa86de04bb9e6ce65b2197970a9ddd1) |
---|---|
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 --- 1393 unchanged lines hidden (view full) --- 1402 } 1403 1404 return rc; 1405 1406} 1407 1408void bnep_packet_handler(uint8_t packet_type, uint16_t l2cap_cid, uint8_t *packet, uint16_t size) 1409{ | 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 --- 1393 unchanged lines hidden (view full) --- 1402 } 1403 1404 return rc; 1405 1406} 1407 1408void bnep_packet_handler(uint8_t packet_type, uint16_t l2cap_cid, uint8_t *packet, uint16_t size) 1409{ |
1410 int handled = 0; | |
1411 switch (packet_type) { 1412 case HCI_EVENT_PACKET: | 1410 switch (packet_type) { 1411 case HCI_EVENT_PACKET: |
1413 handled = bnep_hci_event_handler(packet, size); | 1412 bnep_hci_event_handler(packet, size); |
1414 break; 1415 case L2CAP_DATA_PACKET: | 1413 break; 1414 case L2CAP_DATA_PACKET: |
1416 handled = bnep_l2cap_packet_handler(l2cap_cid, packet, size); | 1415 bnep_l2cap_packet_handler(l2cap_cid, packet, size); |
1417 break; 1418 default: 1419 break; 1420 } 1421 1422 bnep_run(); 1423} 1424 --- 194 unchanged lines hidden --- | 1416 break; 1417 default: 1418 break; 1419 } 1420 1421 bnep_run(); 1422} 1423 --- 194 unchanged lines hidden --- |