mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 10:31:46 +09:00
wifi: mac80211: export ieee80211_purge_tx_queue() for drivers
commit 53bc1b73b67836ac9867f93dee7a443986b4a94f upstream. Drivers need to purge TX SKB when stopping. Using skb_queue_purge() can't report TX status to mac80211, causing ieee80211_free_ack_frame() warns "Have pending ack frames!". Export ieee80211_purge_tx_queue() for drivers to not have to reimplement it. Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Link: https://patch.msgid.link/20240822014255.10211-1-pkshih@realtek.com Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
4e773aea05
commit
ff5a5dae30
@@ -2956,6 +2956,19 @@ ieee80211_get_alt_retry_rate(const struct ieee80211_hw *hw,
|
|||||||
*/
|
*/
|
||||||
void ieee80211_free_txskb(struct ieee80211_hw *hw, struct sk_buff *skb);
|
void ieee80211_free_txskb(struct ieee80211_hw *hw, struct sk_buff *skb);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ieee80211_purge_tx_queue - purge TX skb queue
|
||||||
|
* @hw: the hardware
|
||||||
|
* @skbs: the skbs
|
||||||
|
*
|
||||||
|
* Free a set of transmit skbs. Use this function when device is going to stop
|
||||||
|
* but some transmit skbs without TX status are still queued.
|
||||||
|
* This function does not take the list lock and the caller must hold the
|
||||||
|
* relevant locks to use it.
|
||||||
|
*/
|
||||||
|
void ieee80211_purge_tx_queue(struct ieee80211_hw *hw,
|
||||||
|
struct sk_buff_head *skbs);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* DOC: Hardware crypto acceleration
|
* DOC: Hardware crypto acceleration
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1984,8 +1984,6 @@ void __ieee80211_subif_start_xmit(struct sk_buff *skb,
|
|||||||
u32 info_flags,
|
u32 info_flags,
|
||||||
u32 ctrl_flags,
|
u32 ctrl_flags,
|
||||||
u64 *cookie);
|
u64 *cookie);
|
||||||
void ieee80211_purge_tx_queue(struct ieee80211_hw *hw,
|
|
||||||
struct sk_buff_head *skbs);
|
|
||||||
struct sk_buff *
|
struct sk_buff *
|
||||||
ieee80211_build_data_template(struct ieee80211_sub_if_data *sdata,
|
ieee80211_build_data_template(struct ieee80211_sub_if_data *sdata,
|
||||||
struct sk_buff *skb, u32 info_flags);
|
struct sk_buff *skb, u32 info_flags);
|
||||||
|
|||||||
@@ -1294,3 +1294,4 @@ void ieee80211_purge_tx_queue(struct ieee80211_hw *hw,
|
|||||||
while ((skb = __skb_dequeue(skbs)))
|
while ((skb = __skb_dequeue(skbs)))
|
||||||
ieee80211_free_txskb(hw, skb);
|
ieee80211_free_txskb(hw, skb);
|
||||||
}
|
}
|
||||||
|
EXPORT_SYMBOL(ieee80211_purge_tx_queue);
|
||||||
|
|||||||
Reference in New Issue
Block a user