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

Commit 9a36225c authored by Hemant Kumar's avatar Hemant Kumar
Browse files

net: usb: Add support for ETH_P_MAP as skb protocol type



This allows upper layer to handle muxing and de-muxing of skb
supporting MAP protocol.

Change-Id: If1a64613917a42f303c71ce8ae64f6cdb77dfd35
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
parent cd43049d
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -396,8 +396,11 @@ static __be16 rmnet_ip_type_trans(struct sk_buff *skb,
		protocol = htons(ETH_P_IPV6);
		break;
	default:
		pr_err("[%s] rmnet_recv() L3 protocol decode error: 0x%02x",
		       dev->name, skb->data[0] & 0xf0);
		/*
		 * There is no good way to determine if a packet has
		 * a MAP header. For now default to MAP protocol
		 */
		protocol = htons(ETH_P_MAP);
	}

	return protocol;