bt: removed esp_bt_get_mac()

There was no need for this function as there is already a way present to
fetch own mac address. Own mac addr can be fetched by calling
controller_get_interface().
This commit is contained in:
Chinmay Chhajed
2021-02-04 00:41:13 +05:30
parent 2c39010b3b
commit 5596f37af1
4 changed files with 2 additions and 29 deletions

View File

@@ -111,8 +111,6 @@ typedef struct {
} btdm_queue_item_t;
#endif
static uint8_t own_bda[6];
/* OSI function */
struct osi_funcs_t {
uint32_t _magic;
@@ -950,8 +948,6 @@ esp_err_t esp_bt_controller_init(esp_bt_controller_config_t *cfg)
}
}
read_mac_wrapper(own_bda);
ESP_LOGI(BTDM_LOG_TAG, "BT controller compile version [%s]", btdm_controller_get_compile_version());
#if CONFIG_SPIRAM_USE_MALLOC
@@ -1168,11 +1164,6 @@ esp_bt_controller_status_t esp_bt_controller_get_status(void)
return btdm_controller_status;
}
uint8_t* esp_bt_get_mac(void)
{
return own_bda;
}
/* extra functions */
esp_err_t esp_ble_tx_power_set(esp_ble_power_type_t power_type, esp_power_level_t power_level)
{