fix(wifi): Added oui check for ESPNOW

Add new api to set/get user oui for ESPNOW

Closes https://github.com/espressif/esp-idf/issues/9577
This commit is contained in:
zhangyanjiao
2025-03-06 17:27:27 +08:00
parent b0f834256e
commit e133912fda
2 changed files with 23 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2019-2024 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2019-2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -368,6 +368,27 @@ esp_err_t esp_now_set_pmk(const uint8_t *pmk);
*/
esp_err_t esp_now_set_wake_window(uint16_t window);
/**
* @brief Set the OUI (Organization Identifier) in the vendor-specific element for ESPNOW.
*
* @param oui The oui should occupy 3 bytes. If the oui is NULL, then use the default value (0x18fe34).
*
* @return
* - ESP_OK : succeed
*/
esp_err_t esp_now_set_user_oui(uint8_t *oui);
/**
* @brief Get the OUI (Organization Identifier) in the vendor-specific element for ESPNOW.
*
* @param oui user configured OUI.
*
* @return
* - ESP_OK : succeed
* - ESP_ERR_ESPNOW_ARG : invalid argument
*/
esp_err_t esp_now_get_user_oui(uint8_t *oui);
/**
* @}
*/