fix(wifi): support weak func for wifi lmac assert

This commit is contained in:
muhaidong
2026-07-06 19:28:49 +08:00
parent 65822e1c82
commit bf225a618c
+12 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2015-2025 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2015-2026 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -815,6 +815,17 @@ esp_err_t esp_wifi_disconnect_internal(void);
*/
void esp_wifi_enable_easy_fragment(bool enable);
/**
* @brief Weak Wi-Fi assert hook.
*
* The Wi-Fi library provides a weak default implementation. Applications may
* define this symbol to override the default behavior for debugging.
*
* @note This is intended for diagnostics only and is not part of normal Wi-Fi
* operation.
*/
void wifi_assert(bool expr, const char *file, const char *func, int line);
#ifdef __cplusplus
}
#endif