1choice ESP32S2_UNIVERSAL_MAC_ADDRESSES
2    bool "Number of universally administered (by IEEE) MAC address"
3    default ESP32S2_UNIVERSAL_MAC_ADDRESSES_TWO
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 Two, all interfaces (WiFi station, WiFi softap) receive a
9        universally administered MAC address. They are generated sequentially by adding 0, and 1 (respectively)
10        to the final octet of the base MAC address. If the number of universal MAC addresses is one,
11        only WiFi station receives a universally administered MAC address.
12        It's generated by adding 0 to the base MAC address.
13        The WiFi softap receives local MAC addresses. It's derived from the universal WiFi station MAC addresses.
14        When using the default (Espressif-assigned) base MAC address, either setting can be used. When using
15        a custom universal MAC address range, the correct setting will depend on the allocation of MAC
16        addresses in this range (either 1 or 2 per device.)
17
18    config ESP32S2_UNIVERSAL_MAC_ADDRESSES_ONE
19        bool "One"
20        select ESP_MAC_ADDR_UNIVERSE_WIFI_STA
21    config ESP32S2_UNIVERSAL_MAC_ADDRESSES_TWO
22        bool "Two"
23        select ESP_MAC_ADDR_UNIVERSE_WIFI_STA
24        select ESP_MAC_ADDR_UNIVERSE_WIFI_AP
25endchoice
26
27config ESP32S2_UNIVERSAL_MAC_ADDRESSES
28    int
29    default 1 if ESP32S2_UNIVERSAL_MAC_ADDRESSES_ONE
30    default 2 if ESP32S2_UNIVERSAL_MAC_ADDRESSES_TWO
31