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

@@ -139,7 +139,6 @@ typedef struct {
} btdm_dram_available_region_t;
typedef void (* osi_intr_handler)(void);
static uint8_t own_bda[6];
/* OSI function */
struct osi_funcs_t {
@@ -975,8 +974,6 @@ esp_err_t esp_bt_controller_init(esp_bt_controller_config_t *cfg)
return ESP_ERR_INVALID_ARG;
}
read_mac_wrapper(own_bda);
ESP_LOGI(BTDM_LOG_TAG, "BT controller compile version [%s]", btdm_controller_get_compile_version());
// init low-power control resources
@@ -1331,11 +1328,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)
{