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

Commit 28f51b0f authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "net: qualcomm: rmnet: Handle command packets with MAPv5"

parents 101feec5 b8952bc9
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -327,8 +327,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;