Skip to content

Commit ad9dda6

Browse files
Felix Fietkaujmberg-intel
authored andcommitted
mac80211: pass tx info to ieee80211_lost_packet instead of an skb
Signed-off-by: Felix Fietkau <[email protected]> Signed-off-by: Johannes Berg <[email protected]>
1 parent 63558a6 commit ad9dda6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

net/mac80211/status.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -592,10 +592,9 @@ static void ieee80211_tx_latency_end_msrmnt(struct ieee80211_local *local,
592592
#define STA_LOST_TDLS_PKT_THRESHOLD 10
593593
#define STA_LOST_TDLS_PKT_TIME (10*HZ) /* 10secs since last ACK */
594594

595-
static void ieee80211_lost_packet(struct sta_info *sta, struct sk_buff *skb)
595+
static void ieee80211_lost_packet(struct sta_info *sta,
596+
struct ieee80211_tx_info *info)
596597
{
597-
struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb);
598-
599598
/* This packet was aggregated but doesn't carry status info */
600599
if ((info->flags & IEEE80211_TX_CTL_AMPDU) &&
601600
!(info->flags & IEEE80211_TX_STAT_AMPDU))
@@ -767,7 +766,7 @@ void ieee80211_tx_status(struct ieee80211_hw *hw, struct sk_buff *skb)
767766
if (test_sta_flag(sta, WLAN_STA_TDLS_PEER_AUTH))
768767
sta->last_tdls_pkt_time = jiffies;
769768
} else {
770-
ieee80211_lost_packet(sta, skb);
769+
ieee80211_lost_packet(sta, info);
771770
}
772771
}
773772

0 commit comments

Comments
 (0)