Loading system/main/bte_conf.c +0 −25 Original line number Diff line number Diff line Loading @@ -27,31 +27,6 @@ #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) { Loading system/main/bte_main.c +0 −4 Original line number Diff line number Diff line Loading @@ -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; /****************************************************************************** Loading Loading @@ -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)); } Loading Loading
system/main/bte_conf.c +0 −25 Original line number Diff line number Diff line Loading @@ -27,31 +27,6 @@ #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) { Loading
system/main/bte_main.c +0 −4 Original line number Diff line number Diff line Loading @@ -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; /****************************************************************************** Loading Loading @@ -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)); } Loading