mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/bt_universal_calculation' into 'master'
bugfix/correct_bt_mac_calculation Closes IDFGH-3343 See merge request espressif/esp-idf!8825
This commit is contained in:
commit
5bb656bd5e
@ -224,6 +224,11 @@ menu "Common ESP-related"
|
||||
config ESP_MAC_ADDR_UNIVERSE_BT
|
||||
bool
|
||||
|
||||
config ESP_MAC_ADDR_UNIVERSE_BT_OFFSET
|
||||
int
|
||||
default 2 if ESP32_UNIVERSAL_MAC_ADDRESSES_FOUR
|
||||
default 1 if ESP32_UNIVERSAL_MAC_ADDRESSES_TWO
|
||||
|
||||
config ESP_MAC_ADDR_UNIVERSE_ETH
|
||||
bool
|
||||
|
||||
|
@ -185,11 +185,9 @@ esp_err_t esp_read_mac(uint8_t* mac, esp_mac_type_t type)
|
||||
#endif
|
||||
break;
|
||||
case ESP_MAC_BT:
|
||||
memcpy(mac, efuse_mac, 6);
|
||||
#if CONFIG_ESP_MAC_ADDR_UNIVERSE_BT
|
||||
mac[5] += 2;
|
||||
#else
|
||||
mac[5] += 1;
|
||||
memcpy(mac, efuse_mac, 6);
|
||||
mac[5] += CONFIG_ESP_MAC_ADDR_UNIVERSE_BT_OFFSET;
|
||||
#endif
|
||||
break;
|
||||
case ESP_MAC_ETH:
|
||||
|
Loading…
x
Reference in New Issue
Block a user