diff --git a/components/esp_hw_support/port/esp32p4/Kconfig.mac b/components/esp_hw_support/port/esp32p4/Kconfig.mac index f998e2a5f6..4a66253788 100644 --- a/components/esp_hw_support/port/esp32p4/Kconfig.mac +++ b/components/esp_hw_support/port/esp32p4/Kconfig.mac @@ -10,9 +10,8 @@ choice ESP32P4_UNIVERSAL_MAC_ADDRESSES If the number of universal MAC addresses is one, only Ethernet interface receives a universally administered MAC address. It's generated by adding 0 to the base MAC address. - When using the default (Espressif-assigned) base MAC address, either setting can be used. When using - a custom universal MAC address range, the correct setting will depend on the allocation of MAC - addresses in this range. + On ESP32-P4 this value is fixed to one, because only Ethernet receives a universally administered + MAC address. config ESP32P4_UNIVERSAL_MAC_ADDRESSES_ONE bool "One" diff --git a/docs/en/api-reference/system/misc_system_api.rst b/docs/en/api-reference/system/misc_system_api.rst index 79a1946948..5f709db72f 100644 --- a/docs/en/api-reference/system/misc_system_api.rst +++ b/docs/en/api-reference/system/misc_system_api.rst @@ -39,7 +39,22 @@ To fetch the MAC address for a specific network interface (e.g., Wi-Fi, Bluetoot In ESP-IDF, the MAC addresses for the various network interfaces are calculated from a single **base MAC address**. By default, the Espressif base MAC address is used. This base MAC address is pre-programmed into the {IDF_TARGET_NAME} eFuse in the factory during production. -.. only:: not esp32s2 +.. only:: esp32p4 + + .. list-table:: + :widths: 20 80 + :header-rows: 1 + + * - Interface + - MAC Address (1 universally administered, default) + * - Ethernet + - base_mac + + .. note:: + + On ESP32-P4, :ref:`CONFIG_{IDF_TARGET_CFG_PREFIX}_UNIVERSAL_MAC_ADDRESSES` is fixed to one universally administered MAC address. + +.. only:: (not esp32s2) and (not esp32p4) .. list-table:: :widths: 20 40 40 diff --git a/docs/zh_CN/api-reference/system/misc_system_api.rst b/docs/zh_CN/api-reference/system/misc_system_api.rst index 4b5f912897..d0b8bda17e 100644 --- a/docs/zh_CN/api-reference/system/misc_system_api.rst +++ b/docs/zh_CN/api-reference/system/misc_system_api.rst @@ -39,7 +39,22 @@ MAC 地址 在 ESP-IDF 中,各个网络接口的 MAC 地址是根据单个 **基准 MAC 地址 (Base MAC address)** 计算出来的。默认情况下使用乐鑫指定的基准 MAC 地址,该基准地址在产品生产过程中已预烧录至 {IDF_TARGET_NAME} eFuse。 -.. only:: not esp32s2 +.. only:: esp32p4 + + .. list-table:: + :widths: 20 80 + :header-rows: 1 + + * - 接口 + - MAC 地址(一个默认的通用管理地址) + * - 以太网 + - base_mac + + .. note:: + + 在 ESP32-P4 上,:ref:`CONFIG_{IDF_TARGET_CFG_PREFIX}_UNIVERSAL_MAC_ADDRESSES` 固定为单个通用管理型 MAC 地址。 + +.. only:: (not esp32s2) and (not esp32p4) .. list-table:: :widths: 20 40 40