hfp_ag.c (677003cbd1f950c1a66502862692b859fdf03e87) hfp_ag.c (a7666b025107f720415ffcb026134a68dcfb8a6d)
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

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

760 case HFP_CMD_RETRIEVE_GENERIC_STATUS_INDICATORS:
761 if (hfp_connection->state != HFP_W4_RETRIEVE_GENERIC_STATUS_INDICATORS) break;
762 hfp_connection->state = HFP_W4_RETRIEVE_INITITAL_STATE_GENERIC_STATUS_INDICATORS;
763 hfp_ag_send_retrieve_supported_generic_status_indicators_cmd(hfp_connection->rfcomm_cid);
764 return 1;
765
766 case HFP_CMD_RETRIEVE_GENERIC_STATUS_INDICATORS_STATE:
767 if (hfp_connection->state != HFP_W4_RETRIEVE_INITITAL_STATE_GENERIC_STATUS_INDICATORS) break;
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

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

760 case HFP_CMD_RETRIEVE_GENERIC_STATUS_INDICATORS:
761 if (hfp_connection->state != HFP_W4_RETRIEVE_GENERIC_STATUS_INDICATORS) break;
762 hfp_connection->state = HFP_W4_RETRIEVE_INITITAL_STATE_GENERIC_STATUS_INDICATORS;
763 hfp_ag_send_retrieve_supported_generic_status_indicators_cmd(hfp_connection->rfcomm_cid);
764 return 1;
765
766 case HFP_CMD_RETRIEVE_GENERIC_STATUS_INDICATORS_STATE:
767 if (hfp_connection->state != HFP_W4_RETRIEVE_INITITAL_STATE_GENERIC_STATUS_INDICATORS) break;
768 hfp_ag_slc_established(hfp_connection);
769 hfp_ag_send_retrieve_initital_supported_generic_status_indicators_cmd(hfp_connection->rfcomm_cid);
768 hfp_ag_send_retrieve_initital_supported_generic_status_indicators_cmd(hfp_connection->rfcomm_cid);
769 hfp_ag_slc_established(hfp_connection);
770 return 1;
771 default:
772 break;
773 }
774
775 switch (hfp_connection->state){
776 case HFP_RETRIEVE_INDICATORS: {
777 int next_segment = hfp_ag_send_retrieve_indicators_cmd_via_generator(hfp_connection->rfcomm_cid, hfp_connection, hfp_connection->send_ag_indicators_segment);

--- 2467 unchanged lines hidden ---
770 return 1;
771 default:
772 break;
773 }
774
775 switch (hfp_connection->state){
776 case HFP_RETRIEVE_INDICATORS: {
777 int next_segment = hfp_ag_send_retrieve_indicators_cmd_via_generator(hfp_connection->rfcomm_cid, hfp_connection, hfp_connection->send_ag_indicators_segment);

--- 2467 unchanged lines hidden ---