Skip to content

Commit 39a9627

Browse files
kapbhnordicjm
authored andcommitted
[nrf fromlist] drivers: nrf_wifi: Add check for minimum RX buffer size
Add check for the RX data buffer size. It should be atleast 400 bytes, anthing less than that scan fails. Upstream PR #: 94106 Signed-off-by: Kapil Bhatt <[email protected]>
1 parent 8277731 commit 39a9627

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/wifi/nrf_wifi/src/fmac_main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ BUILD_ASSERT(CONFIG_NRF70_TX_MAX_DATA_SIZE % 4 == 0,
7979
"TX buffer size must be a multiple of 4");
8080
BUILD_ASSERT(CONFIG_NRF70_RX_MAX_DATA_SIZE % 4 == 0,
8181
"RX buffer size must be a multiple of 4");
82+
BUILD_ASSERT(CONFIG_NRF70_RX_MAX_DATA_SIZE >= 400,
83+
"RX buffer size must be at least 400 bytes");
8284

8385
static const unsigned char aggregation = 1;
8486
static const unsigned char max_num_tx_agg_sessions = 4;

0 commit comments

Comments
 (0)