[mac-frame] unconditionally include crypto/aes_ccm.hpp (#13327)

Previously, `#include "crypto/aes_ccm.hpp"` in `mac_frame.cpp` was guarded
under preprocessor conditionals (`OPENTHREAD_FTD || OPENTHREAD_MTD || ...`)
because the crypto headers directly pulled in third-party crypto library
headers (such as `mbedtls`), which caused build issues on RCP targets.

Now that `aes_ccm.hpp` only includes platform crypto definitions and
OpenThread internal headers, it is safe to include across all build
configurations. This commit removes the preprocessor guard to simplify
the include list in `mac_frame.cpp`.
This commit is contained in:
Abtin Keshavarzian
2026-07-10 06:57:16 -07:00
committed by GitHub
parent a4881b949c
commit e08ff3fab9
+1 -4
View File
@@ -40,11 +40,8 @@
#include "common/frame_builder.hpp"
#include "common/log.hpp"
#include "common/num_utils.hpp"
#include "radio/trel_link.hpp"
#if OPENTHREAD_FTD || OPENTHREAD_MTD || OPENTHREAD_CONFIG_MAC_SOFTWARE_TX_SECURITY_ENABLE || \
(OPENTHREAD_CONFIG_MAC_HEADER_IE_SUPPORT && OPENTHREAD_CONFIG_MAC_SOFTWARE_RETX_SECURITY_ENABLE)
#include "crypto/aes_ccm.hpp"
#endif
#include "radio/trel_link.hpp"
namespace ot {
namespace Mac {