Skip to content

Commit 6257acf

Browse files
Krishna Trlubos
Krishna T
authored andcommitted
[nrf fromlist] drivers: ieee802154: Fix build error for variable net buffers
The assert is only applicable for fixed network buffers, so, add a protection. Upstream PR: zephyrproject-rtos/zephyr#54963 Signed-off-by: Krishna T <[email protected]>
1 parent 52be865 commit 6257acf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/ieee802154/ieee802154_nrf5.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,9 @@ static void nrf5_rx_thread(void *arg1, void *arg2, void *arg3)
153153
pkt_len = rx_frame->psdu[0] - NRF5_FCS_LENGTH;
154154
}
155155

156+
#if defined(CONFIG_NET_BUF_DATA_SIZE)
156157
__ASSERT_NO_MSG(pkt_len <= CONFIG_NET_BUF_DATA_SIZE);
158+
#endif
157159

158160
LOG_DBG("Frame received");
159161

0 commit comments

Comments
 (0)