1# Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
2# SPDX-License-Identifier: Apache-2.0
3
4if SOC_SERIES_ESP32S2
5
6choice ESP32S2_UNIVERSAL_MAC_ADDRESSES
7	bool "Number of universally administered (by IEEE) MAC address"
8	default ESP32S2_UNIVERSAL_MAC_ADDRESSES_TWO
9	help
10	  Configure the number of universally administered (by IEEE) MAC addresses.
11	  During initialization, MAC addresses for each network interface are generated or
12	  derived from a single base MAC address. If the number of universal MAC addresses is two,
13	  all interfaces (WiFi station, WiFi softap) receive a universally administered MAC
14	  address.
15	  They are generated sequentially by adding 0, and 1 (respectively) to the final octet of
16	  the base MAC address. If the number of universal MAC addresses is one, only WiFi station
17	  receives a universally administered MAC address.
18	  The WiFi softap receives local MAC addresses. It's derived from the universal WiFi
19	  station MAC addresses.
20	  When using the default (Espressif-assigned) base MAC address, either setting can be used.
21	  When using a custom universal MAC address range, the correct setting will depend on the
22	  allocation of MAC addresses in this range (either 1 or 2 per device).
23
24config ESP32S2_UNIVERSAL_MAC_ADDRESSES_ONE
25	bool "One"
26	select ESP_MAC_UNIVERSAL_MAC_ADDRESSES_ONE
27	select ESP_MAC_ADDR_UNIVERSE_WIFI_STA
28
29config ESP32S2_UNIVERSAL_MAC_ADDRESSES_TWO
30	bool "Two"
31	select ESP_MAC_UNIVERSAL_MAC_ADDRESSES_TWO
32	select ESP_MAC_ADDR_UNIVERSE_WIFI_STA
33	select ESP_MAC_ADDR_UNIVERSE_WIFI_AP
34
35endchoice # ESP32S2_UNIVERSAL_MAC_ADDRESSES
36
37config ESP32S2_UNIVERSAL_MAC_ADDRESSES
38	int
39	default 1 if ESP32S2_UNIVERSAL_MAC_ADDRESSES_ONE
40	default 2 if ESP32S2_UNIVERSAL_MAC_ADDRESSES_TWO
41
42endif # SOC_SERIES_ESP32S2
43