mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 15:47:36 +00:00
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>
This commit is contained in:
parent
8d5c258568
commit
f603f1f342
1 changed files with 2 additions and 6 deletions
|
@ -2893,10 +2893,6 @@ void __ieee80211_subif_start_xmit(struct sk_buff *skb,
|
||||||
* fix it up in software before we handle anything else.
|
* fix it up in software before we handle anything else.
|
||||||
*/
|
*/
|
||||||
if (skb->ip_summed == CHECKSUM_PARTIAL) {
|
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_set_transport_header(skb,
|
||||||
skb_checksum_start_offset(skb));
|
skb_checksum_start_offset(skb));
|
||||||
if (skb_checksum_help(skb))
|
if (skb_checksum_help(skb))
|
||||||
|
|
Loading…
Reference in a new issue