mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
qcacmn: Adjust mpdu length properly for RAW MPDUs
mpdu length is calculated wrongly in one corner case resulting in wrongly identifying the last nbuf of the mpdu, fixed it by properly adjusting the length. CRs-Fixed: 2368608 Change-Id: Ia7bd3247eb05f2eb4b5de1c65e7190c798128792
This commit is contained in:
parent
884782c9c8
commit
30d651d13b
1 changed files with 1 additions and 1 deletions
|
|
@ -973,7 +973,7 @@ static inline bool dp_rx_adjust_nbuf_len(qdf_nbuf_t nbuf, uint16_t *mpdu_len)
|
|||
{
|
||||
bool last_nbuf;
|
||||
|
||||
if (*mpdu_len >= (RX_BUFFER_SIZE - RX_PKT_TLVS_LEN)) {
|
||||
if (*mpdu_len > (RX_BUFFER_SIZE - RX_PKT_TLVS_LEN)) {
|
||||
qdf_nbuf_set_pktlen(nbuf, RX_BUFFER_SIZE);
|
||||
last_nbuf = false;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue