Skip to content

Commit

Permalink
mac80211: don't update dev->trans_start
Browse files Browse the repository at this point in the history
This isn't necessary any more as the stack will automatically
update the TXQ's trans_start after calling ndo_start_xmit().

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
  • Loading branch information
Johannes Berg committed Apr 24, 2015
1 parent 6fe3eac commit ce5b071
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net/mac80211/tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -2729,7 +2729,6 @@ static bool ieee80211_xmit_fast(struct ieee80211_sub_if_data *sdata,

dev->stats.tx_packets++;
dev->stats.tx_bytes += skb->len + extra_head;
dev->trans_start = jiffies;

/* will not be crypto-handled beyond what we do here, so use false
* as the may-encrypt argument for the resize to not account for
Expand Down Expand Up @@ -2912,7 +2911,6 @@ void __ieee80211_subif_start_xmit(struct sk_buff *skb,

dev->stats.tx_packets++;
dev->stats.tx_bytes += skb->len;
dev->trans_start = jiffies;

ieee80211_xmit(sdata, sta, skb);
}
Expand Down

0 comments on commit ce5b071

Please sign in to comment.