1choice ESP32S3_UNIVERSAL_MAC_ADDRESSES
2    bool "Number of universally administered (by IEEE) MAC address"
3    default ESP32S3_UNIVERSAL_MAC_ADDRESSES_FOUR
4    help
5        Configure the number of universally administered (by IEEE) MAC addresses.
6        During initialization, MAC addresses for each network interface are generated or derived from a
7        single base MAC address.
8        If the number of universal MAC addresses is four, all four interfaces (WiFi station, WiFi softap,
9        Bluetooth and Ethernet) receive a universally administered MAC address. These are generated
10        sequentially by adding 0, 1, 2 and 3 (respectively) to the final octet of the base MAC address.
11        If the number of universal MAC addresses is two, only two interfaces (WiFi station and Bluetooth)
12        receive a universally administered MAC address. These are generated sequentially by adding 0
13        and 1 (respectively) to the base MAC address. The remaining two interfaces (WiFi softap and Ethernet)
14        receive local MAC addresses. These are derived from the universal WiFi station and Bluetooth MAC
15        addresses, respectively.
16        When using the default (Espressif-assigned) base MAC address, either setting can be used. When using
17        a custom universal MAC address range, the correct setting will depend on the allocation of MAC
18        addresses in this range (either 2 or 4 per device.)
19
20    config ESP32S3_UNIVERSAL_MAC_ADDRESSES_TWO
21        bool "Two"
22        select ESP_MAC_ADDR_UNIVERSE_WIFI_STA
23        select ESP_MAC_ADDR_UNIVERSE_BT
24    config ESP32S3_UNIVERSAL_MAC_ADDRESSES_FOUR
25        bool "Four"
26        select ESP_MAC_ADDR_UNIVERSE_WIFI_STA
27        select ESP_MAC_ADDR_UNIVERSE_WIFI_AP
28        select ESP_MAC_ADDR_UNIVERSE_BT
29        select ESP_MAC_ADDR_UNIVERSE_ETH
30endchoice
31
32config ESP32S3_UNIVERSAL_MAC_ADDRESSES
33    int
34    default 2 if ESP32S3_UNIVERSAL_MAC_ADDRESSES_TWO
35    default 4 if ESP32S3_UNIVERSAL_MAC_ADDRESSES_FOUR
36