OSDN Git Service

Removed function bte_load_ble_conf
authorAjay Panicker <apanicke@google.com>
Wed, 10 Feb 2016 01:35:49 +0000 (17:35 -0800)
committerAndre Eisenbach <eisenbach@google.com>
Thu, 18 Feb 2016 18:39:26 +0000 (10:39 -0800)
The functionality provided by this function is not needed anymore.

Change-Id: I59696c7a7e1d7ddb095f3a450f58ce1db97927b6

main/bte_conf.c
main/bte_main.c

index ff4691e..01d8071 100644 (file)
 #include "osi/include/config.h"
 #include "osi/include/log.h"
 
-#if (defined(BLE_INCLUDED) && (BLE_INCLUDED == TRUE))
-extern int btm_ble_tx_power[BTM_BLE_ADV_TX_POWER_MAX + 1];
-void bte_load_ble_conf(const char* path)
-{
-  assert(path != NULL);
-
-  LOG_INFO(LOG_TAG, "%s attempt to load ble stack conf from %s", __func__, path);
-
-  config_t *config = config_new(path);
-  if (!config) {
-    LOG_INFO(LOG_TAG, "%s file >%s< not found", __func__, path);
-    return;
-  }
-
-  const char* ble_adv_tx_power = config_get_string(config, CONFIG_DEFAULT_SECTION, "BLE_ADV_TX_POWER", "");
-  if(*ble_adv_tx_power) {
-    sscanf(ble_adv_tx_power, "%d,%d,%d,%d,%d", btm_ble_tx_power, btm_ble_tx_power + 1, btm_ble_tx_power + 2,
-                                               btm_ble_tx_power + 3, btm_ble_tx_power + 4);
-    LOG_INFO(LOG_TAG, "loaded btm_ble_tx_power: %d, %d, %d, %d, %d", (char)btm_ble_tx_power[0], (char)btm_ble_tx_power[1],
-                                        btm_ble_tx_power[2], btm_ble_tx_power[3], btm_ble_tx_power[4]);
-  }
-  config_free(config);
-}
-#endif
-
 // Parses the specified Device ID configuration file and registers the
 // Device ID records with SDP.
 void bte_load_did_conf(const char *p_path) {
index f7cf89e..555c1d2 100644 (file)
@@ -86,7 +86,6 @@ static const hci_t *hci;
 /*******************************************************************************
 **  Externs
 *******************************************************************************/
-extern void bte_load_ble_conf(const char *p_path);
 fixed_queue_t *btu_hci_msg_queue;
 
 /******************************************************************************
@@ -115,9 +114,6 @@ void bte_main_boot_entry(void)
     data_dispatcher_register_default(hci->event_dispatcher, btu_hci_msg_queue);
     hci->set_data_queue(btu_hci_msg_queue);
 
-#if (defined(BLE_INCLUDED) && (BLE_INCLUDED == TRUE))
-    bte_load_ble_conf(BTE_BLE_STACK_CONF_FILE);
-#endif
     module_init(get_module(STACK_CONFIG_MODULE));
 }