l2cap.c (4fc83f45ae1d133397ab7f645163081cf036bb7a) l2cap.c (0763891b991833f11bf58ecfd581e684b7aa7309)
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

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

3533 log_info("Received unexpected frame TxSeq %u but expected %u -> send S-REJ", tx_seq, l2cap_channel->expected_tx_seq);
3534 l2cap_channel->send_supervisor_frame_reject = 1;
3535 }
3536 }
3537 }
3538 return;
3539 }
3540#endif
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

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

3533 log_info("Received unexpected frame TxSeq %u but expected %u -> send S-REJ", tx_seq, l2cap_channel->expected_tx_seq);
3534 l2cap_channel->send_supervisor_frame_reject = 1;
3535 }
3536 }
3537 }
3538 return;
3539 }
3540#endif
3541 l2cap_dispatch_to_channel(l2cap_channel, L2CAP_DATA_PACKET, &packet[COMPLETE_L2CAP_HEADER], size-COMPLETE_L2CAP_HEADER);
3542
3541
3542 // check size
3543 if (l2cap_channel->local_mtu < size) return;
3544
3545 l2cap_dispatch_to_channel(l2cap_channel, L2CAP_DATA_PACKET, &packet[COMPLETE_L2CAP_HEADER], size-COMPLETE_L2CAP_HEADER);
3543}
3544#endif
3545
3546static void l2cap_acl_classic_handler(hci_con_handle_t handle, uint8_t *packet, uint16_t size){
3547#ifdef ENABLE_CLASSIC
3548 l2cap_channel_t * l2cap_channel;
3549 l2cap_fixed_channel_t * l2cap_fixed_channel;
3550

--- 660 unchanged lines hidden ---
3546}
3547#endif
3548
3549static void l2cap_acl_classic_handler(hci_con_handle_t handle, uint8_t *packet, uint16_t size){
3550#ifdef ENABLE_CLASSIC
3551 l2cap_channel_t * l2cap_channel;
3552 l2cap_fixed_channel_t * l2cap_fixed_channel;
3553

--- 660 unchanged lines hidden ---