summaryrefslogtreecommitdiff
path: root/net/mac80211/tx.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2015-05-05 15:25:33 +0200
committerJohannes Berg <johannes.berg@intel.com>2015-05-05 15:25:33 +0200
commitf603f1f342547b597450b9d1e1e00b3e07c6e41b (patch)
treebbe1f5fb4a831afa72a68c467d77269e45e3ea35 /net/mac80211/tx.c
parent8d5c25856859bd826aca4b88103552a80b344cef (diff)
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: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r--net/mac80211/tx.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
index db5e40360924..8df134213adf 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -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;
}