bcmdhd: fail ioctl set request if length is greater than MSGBUF_IOCTL_MAX_RQSTLEN
It is observed that in 4398 if APF pkt filter add iovar with 4k buffer is sent to DHD, the ioctl returns success, but FW is receiving only a partial 2k buffer.
This is because in dhd in the msgbuf layer, the ioctl req buffer is being truncated to MSGBUF_IOCTL_MAX_RQSTLEN.
Rather than this, it is better to fail the ioctl request if length is greater than MSGBUF_IOCTL_MAX_RQSTLEN
Bug: 327185608
Test: bench test
Change-Id: Ib86da239c48af08d2ffa278bcc321854ef35d8cf
Signed-off-by: Dennis Jeon <dennis.jeon@broadcom.corp-partner.google.com>
1 file changed