From ba7fd8c4e5a67d4a4a4316ee0f9cf791e2f044a8 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Wed, 18 Nov 2015 14:20:36 +0100 Subject: [PATCH] rename hfp_handle_rfcomm_event to hfp_handle_rfcomm_data --- src/hfp_ag.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hfp_ag.c b/src/hfp_ag.c index 64d008ec5..e891ec0d0 100644 --- a/src/hfp_ag.c +++ b/src/hfp_ag.c @@ -779,7 +779,7 @@ static void hfp_run_for_context(hfp_connection_t *context){ } } -static void hfp_handle_rfcomm_event(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size){ +static void hfp_handle_rfcomm_data(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size){ hfp_connection_t * context = get_hfp_connection_context_for_rfcomm_cid(channel); if (!context) return; int pos; @@ -800,7 +800,7 @@ static void hfp_run(){ static void packet_handler(void * connection, uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size){ switch (packet_type){ case RFCOMM_DATA_PACKET: - hfp_handle_rfcomm_event(packet_type, channel, packet, size); + hfp_handle_rfcomm_data(packet_type, channel, packet, size); break; case HCI_EVENT_PACKET: hfp_handle_hci_event(hfp_callback, packet_type, packet, size);