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

This commit is contained in:
muhaidong
2026-06-03 10:02:49 +08:00
committed by BOT
parent 21fe8c709f
commit 9de8c1101d
+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 * SPDX-License-Identifier: Apache-2.0
*/ */
@@ -792,6 +792,17 @@ esp_err_t esp_nan_internal_register_callbacks(struct nan_callbacks *cb);
*/ */
void esp_wifi_enable_easy_fragment(bool enable); 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 #ifdef __cplusplus
} }
#endif #endif