Commit 2cc6f5a7 authored by Johannes Berg's avatar Johannes Berg

mac80211: set wifi_acked[_valid] bits for transmitted SKBs

There may be situations in which the in-kernel originator of an
SKB cares about its wifi transmission status. To have that, set
the wifi_acked[_valid] bits before freeing/orphaning the SKB if
the destructor is set. The originator can then use it in there.
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent cef0acd4
...@@ -541,6 +541,11 @@ static void ieee80211_report_used_skb(struct ieee80211_local *local, ...@@ -541,6 +541,11 @@ static void ieee80211_report_used_skb(struct ieee80211_local *local,
} else if (info->ack_frame_id) { } else if (info->ack_frame_id) {
ieee80211_report_ack_skb(local, info, acked, dropped); ieee80211_report_ack_skb(local, info, acked, dropped);
} }
if (!dropped && skb->destructor) {
skb->wifi_acked_valid = 1;
skb->wifi_acked = acked;
}
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment