Skip to content

Commit

Permalink
mac80211: remove useless skb->encapsulation check
Browse files Browse the repository at this point in the history
No current (and planned, as far as I know) wifi devices support
encapsulation checksum offload, so remove the useless test here.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
  • Loading branch information
Johannes Berg committed May 5, 2015
1 parent 8d5c258 commit f603f1f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions net/mac80211/tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -2893,12 +2893,8 @@ 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));
skb_set_transport_header(skb,
skb_checksum_start_offset(skb));
if (skb_checksum_help(skb))
goto out_free;
}
Expand Down

0 comments on commit f603f1f

Please sign in to comment.