wirless/sdio: frame length should with guard bound
some SDIO device will return the larger frames out of bound error log: bcmf_sdpcm_readframe: Frame is too large, cancel 1544 1536 bcmf_sdpcm_readframe: Frame is too large, cancel 1544 1536 bcmf_sdpcm_readframe: Frame is too large, cancel 1544 1536 Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
parent
dc2b2dcb3f
commit
28b46bd381
@ -1016,7 +1016,8 @@ struct bcmf_sdio_frame *bcmf_sdio_allocate_frame(FAR struct bcmf_dev_s *priv,
|
||||
|
||||
sframe = container_of(entry, struct bcmf_sdio_frame, list_entry);
|
||||
|
||||
sframe->header.len = HEADER_SIZE + MAX_NETDEV_PKTSIZE;
|
||||
sframe->header.len = HEADER_SIZE + MAX_NETDEV_PKTSIZE +
|
||||
CONFIG_NET_GUARDSIZE;
|
||||
sframe->header.base = sframe->data;
|
||||
sframe->header.data = sframe->data;
|
||||
sframe->tx = tx;
|
||||
|
Loading…
Reference in New Issue
Block a user