rfcomm.c (e501bae08349e058caa4648e0af3dd01cbd89d20) rfcomm.c (26244be471fa854594dbe528ce7186dbf88861c4)
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

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

1010 memcpy(request.addr, event_addr, 6);
1011 request.ertm_id = ++ertm_id;
1012 if (rfcomm_ertm_request_callback){
1013 (*rfcomm_ertm_request_callback)(&request);
1014 }
1015 if (request.ertm_config && request.ertm_buffer && request.ertm_buffer_size){
1016 multiplexer->ertm_id = request.ertm_id;
1017 l2cap_accept_ertm_connection(l2cap_cid, request.ertm_config, request.ertm_buffer, request.ertm_buffer_size);
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

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

1010 memcpy(request.addr, event_addr, 6);
1011 request.ertm_id = ++ertm_id;
1012 if (rfcomm_ertm_request_callback){
1013 (*rfcomm_ertm_request_callback)(&request);
1014 }
1015 if (request.ertm_config && request.ertm_buffer && request.ertm_buffer_size){
1016 multiplexer->ertm_id = request.ertm_id;
1017 l2cap_accept_ertm_connection(l2cap_cid, request.ertm_config, request.ertm_buffer, request.ertm_buffer_size);
1018 return 1;
1018 }
1019 }
1019 return 1;
1020#endif
1021
1022 l2cap_accept_connection(l2cap_cid);
1023 return 1;
1024
1025 // l2cap connection opened -> store l2cap_cid, remote_addr
1026 case L2CAP_EVENT_CHANNEL_OPENED:
1027

--- 1528 unchanged lines hidden ---
1020#endif
1021
1022 l2cap_accept_connection(l2cap_cid);
1023 return 1;
1024
1025 // l2cap connection opened -> store l2cap_cid, remote_addr
1026 case L2CAP_EVENT_CHANNEL_OPENED:
1027

--- 1528 unchanged lines hidden ---