diff options
| author | Felix Fietkau <nbd@openwrt.org> | 2014-11-19 14:08:13 -0500 |
|---|---|---|
| committer | Johannes Berg <johannes.berg@intel.com> | 2014-11-28 09:01:51 -0500 |
| commit | f027c2aca0cf43e0f15fc8de8841f7b566163d94 (patch) | |
| tree | 932656a5a8d8b1048d287dea276c9cf5a29fb10c /include/net | |
| parent | 7e1cdcbb092458f7b0cc247004c43f0b228fc970 (diff) | |
mac80211: add ieee80211_tx_status_noskb
This can be used by drivers that cannot reliably map tx status
information onto specific skbs.
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/net')
| -rw-r--r-- | include/net/mac80211.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index 01dfd22e45fd..58d719ddaa60 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
| @@ -3619,6 +3619,26 @@ void ieee80211_tx_status(struct ieee80211_hw *hw, | |||
| 3619 | struct sk_buff *skb); | 3619 | struct sk_buff *skb); |
| 3620 | 3620 | ||
| 3621 | /** | 3621 | /** |
| 3622 | * ieee80211_tx_status_noskb - transmit status callback without skb | ||
| 3623 | * | ||
| 3624 | * This function can be used as a replacement for ieee80211_tx_status | ||
| 3625 | * in drivers that cannot reliably map tx status information back to | ||
| 3626 | * specific skbs. | ||
| 3627 | * | ||
| 3628 | * Calls to this function for a single hardware must be synchronized | ||
| 3629 | * against each other. Calls to this function, ieee80211_tx_status_ni() | ||
| 3630 | * and ieee80211_tx_status_irqsafe() may not be mixed for a single hardware. | ||
| 3631 | * | ||
| 3632 | * @hw: the hardware the frame was transmitted by | ||
| 3633 | * @sta: the receiver station to which this packet is sent | ||
| 3634 | * (NULL for multicast packets) | ||
| 3635 | * @info: tx status information | ||
| 3636 | */ | ||
| 3637 | void ieee80211_tx_status_noskb(struct ieee80211_hw *hw, | ||
| 3638 | struct ieee80211_sta *sta, | ||
| 3639 | struct ieee80211_tx_info *info); | ||
| 3640 | |||
| 3641 | /** | ||
| 3622 | * ieee80211_tx_status_ni - transmit status callback (in process context) | 3642 | * ieee80211_tx_status_ni - transmit status callback (in process context) |
| 3623 | * | 3643 | * |
| 3624 | * Like ieee80211_tx_status() but can be called in process context. | 3644 | * Like ieee80211_tx_status() but can be called in process context. |
