bnep.c (2fca4dad957cd7b88f4657ed51e89c12615dda72) bnep.c (b93f89661ecd1d19be40311be96b92932960a800)
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

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

809
810 l2cap_cid = channel->l2cap_cid;
811
812 /* Stop any eventually running timer */
813 bnep_channel_stop_timer(channel);
814
815 /* Free ressources and then close the l2cap channel */
816 bnep_channel_free(channel);
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

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

809
810 l2cap_cid = channel->l2cap_cid;
811
812 /* Stop any eventually running timer */
813 bnep_channel_stop_timer(channel);
814
815 /* Free ressources and then close the l2cap channel */
816 bnep_channel_free(channel);
817 l2cap_disconnect(l2cap_cid, 0x13);
817 l2cap_disconnect(l2cap_cid);
818}
819
820static int bnep_handle_connection_request(bnep_channel_t *channel, uint8_t *packet, uint16_t size)
821{
822 uint16_t uuid_size;
823 uint16_t uuid_offset = 0; // avoid "may be unitialized when used" in clang
824 uuid_size = packet[1];
825 uint16_t response_code = BNEP_RESP_SETUP_SUCCESS;

--- 868 unchanged lines hidden ---
818}
819
820static int bnep_handle_connection_request(bnep_channel_t *channel, uint8_t *packet, uint16_t size)
821{
822 uint16_t uuid_size;
823 uint16_t uuid_offset = 0; // avoid "may be unitialized when used" in clang
824 uuid_size = packet[1];
825 uint16_t response_code = BNEP_RESP_SETUP_SUCCESS;

--- 868 unchanged lines hidden ---