1# Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd. 2# SPDX-License-Identifier: Apache-2.0 3 4if SOC_SERIES_ESP32S3 5 6choice ESP32S3_UNIVERSAL_MAC_ADDRESSES 7 bool "Number of universally administered (by IEEE) MAC address" 8 default ESP32S3_UNIVERSAL_MAC_ADDRESSES_FOUR 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 derived from a 12 single base MAC address. 13 If the number of universal MAC addresses is four, all four interfaces (WiFi station, WiFi softap, 14 Bluetooth and Ethernet) receive a universally administered MAC address. These are generated 15 sequentially by adding 0, 1, 2 and 3 (respectively) to the final octet of the base MAC address. 16 If the number of universal MAC addresses is two, only two interfaces (WiFi station and Bluetooth) 17 receive a universally administered MAC address. These are generated sequentially by adding 0 18 and 1 (respectively) to the base MAC address. The remaining two interfaces (WiFi softap and Ethernet) 19 receive local MAC addresses. These are derived from the universal WiFi station and Bluetooth MAC 20 addresses, respectively. 21 When using the default (Espressif-assigned) base MAC address, either setting can be used. When using 22 a custom universal MAC address range, the correct setting will depend on the allocation of MAC 23 addresses in this range (either 2 or 4 per device.)ll depend on the 24 allocation of MAC addresses in this range (either 1 or 2 per device). 25 26config ESP32S3_UNIVERSAL_MAC_ADDRESSES_TWO 27 bool "Two" 28 select ESP_MAC_UNIVERSAL_MAC_ADDRESSES_TWO 29 select ESP_MAC_ADDR_UNIVERSE_WIFI_STA 30 select ESP_MAC_ADDR_UNIVERSE_BT 31 32config ESP32S3_UNIVERSAL_MAC_ADDRESSES_FOUR 33 bool "Four" 34 select ESP_MAC_UNIVERSAL_MAC_ADDRESSES_FOUR 35 select ESP_MAC_ADDR_UNIVERSE_WIFI_STA 36 select ESP_MAC_ADDR_UNIVERSE_WIFI_AP 37 select ESP_MAC_ADDR_UNIVERSE_BT 38 select ESP_MAC_ADDR_UNIVERSE_ETH 39 40endchoice # ESP32S3_UNIVERSAL_MAC_ADDRESSES 41 42config ESP32S3_UNIVERSAL_MAC_ADDRESSES 43 int 44 default 2 if ESP32S3_UNIVERSAL_MAC_ADDRESSES_TWO 45 default 4 if ESP32S3_UNIVERSAL_MAC_ADDRESSES_FOUR 46 47endif # SOC_SERIES_ESP32S3 48