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

Commit f603f1f3 authored by Johannes Berg's avatar Johannes Berg
Browse files

mac80211: remove useless skb->encapsulation check



No current (and planned, as far as I know) wifi devices support
encapsulation checksum offload, so remove the useless test here.

Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 8d5c2585
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -2893,10 +2893,6 @@ void __ieee80211_subif_start_xmit(struct sk_buff *skb,
		 * fix it up in software before we handle anything else.
		 */
		if (skb->ip_summed == CHECKSUM_PARTIAL) {
			if (skb->encapsulation)
				skb_set_inner_transport_header(skb,
							       skb_checksum_start_offset(skb));
			else
			skb_set_transport_header(skb,
						 skb_checksum_start_offset(skb));
			if (skb_checksum_help(skb))