Skip to content

Commit

Permalink
[nrf fromtree] net: lib: capture: Fix build error
Browse files Browse the repository at this point in the history
The CONFIG_ prefix was missed.

Signed-off-by: Chaitanya Tata <[email protected]>
(cherry picked from commit cef6b69)
  • Loading branch information
krish2718 authored and rlubos committed Oct 30, 2024
1 parent 979a672 commit c8fd566
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion subsys/net/lib/capture/capture.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ NET_PKT_SLAB_DEFINE(capture_pkts, CONFIG_NET_CAPTURE_PKT_COUNT);
NET_BUF_POOL_FIXED_DEFINE(capture_bufs, CONFIG_NET_CAPTURE_BUF_COUNT,
CONFIG_NET_BUF_DATA_SIZE, 4, NULL);
#else
#define DATA_POOL_SIZE MAX(NET_PKT_BUF_RX_DATA_POOL_SIZE, NET_PKT_BUF_TX_DATA_POOL_SIZE)
#define DATA_POOL_SIZE MAX(CONFIG_NET_PKT_BUF_RX_DATA_POOL_SIZE, \
CONFIG_NET_PKT_BUF_TX_DATA_POOL_SIZE)

NET_BUF_POOL_VAR_DEFINE(capture_bufs, CONFIG_NET_CAPTURE_BUF_COUNT,
DATA_POOL_SIZE, 4, NULL);
Expand Down

0 comments on commit c8fd566

Please sign in to comment.