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_UNIVERSAL_MAC_ADDRESSES_TWO
23        select ESP_MAC_ADDR_UNIVERSE_WIFI_STA
24        select ESP_MAC_ADDR_UNIVERSE_BT
25
26    config ESP32S3_UNIVERSAL_MAC_ADDRESSES_FOUR
27        bool "Four"
28        select ESP_MAC_UNIVERSAL_MAC_ADDRESSES_FOUR
29        select ESP_MAC_ADDR_UNIVERSE_WIFI_STA
30        select ESP_MAC_ADDR_UNIVERSE_WIFI_AP
31        select ESP_MAC_ADDR_UNIVERSE_BT
32        select ESP_MAC_ADDR_UNIVERSE_ETH
33endchoice
34
35config ESP32S3_UNIVERSAL_MAC_ADDRESSES
36    int
37    default 2 if ESP32S3_UNIVERSAL_MAC_ADDRESSES_TWO
38    default 4 if ESP32S3_UNIVERSAL_MAC_ADDRESSES_FOUR
39