Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 337b958f authored by Subash Abhinov Kasiviswanathan's avatar Subash Abhinov Kasiviswanathan
Browse files

net: qualcomm: rmnet: Handle command packets with MAPv5



Command packets do not have a dummy checksum offload header when
using MAPv5. These packets have the same structure and size as that
of MAPv1.

CRs-Fixed: 2347014
Change-Id: I583143b66713b6330c292779ce2628cbe0b06e7e
Signed-off-by: default avatarSubash Abhinov Kasiviswanathan <subashab@codeaurora.org>
parent 271eb03e
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -335,8 +335,10 @@ struct sk_buff *rmnet_map_deaggregate(struct sk_buff *skb,

	if (port->data_format & RMNET_FLAGS_INGRESS_MAP_CKSUMV4)
		packet_len += sizeof(struct rmnet_map_dl_csum_trailer);
	else if (port->data_format & RMNET_FLAGS_INGRESS_MAP_CKSUMV5)
	else if (port->data_format & RMNET_FLAGS_INGRESS_MAP_CKSUMV5) {
		if (!maph->cd_bit)
			packet_len += sizeof(struct rmnet_map_v5_csum_header);
	}

	if (((int)skb->len - (int)packet_len) < 0)
		return NULL;