diff --git a/src/system/SystemPacketBuffer.h b/src/system/SystemPacketBuffer.h index 6be8a0a2725ded..3c9d9aa1ff5cc0 100644 --- a/src/system/SystemPacketBuffer.h +++ b/src/system/SystemPacketBuffer.h @@ -123,7 +123,7 @@ class DLL_EXPORT PacketBuffer : private pbuf /** * The maximum size buffer an application can allocate with no protocol header reserve. */ -#if CHIP_SYSTEM_PACKETBUFFER_FROM_LWIP_POOL +#if CHIP_SYSTEM_CONFIG_USE_LWIP static constexpr uint16_t kMaxSizeWithoutReserve = LWIP_MEM_ALIGN_SIZE(PBUF_POOL_BUFSIZE); #else static constexpr uint16_t kMaxSizeWithoutReserve = CHIP_SYSTEM_CONFIG_PACKETBUFFER_CAPACITY_MAX;