|
@@ -2024,8 +2024,8 @@ static inline void ieee80211_rx_ni(struct ieee80211_hw *hw,
|
|
*
|
|
*
|
|
* This function may not be called in IRQ context. Calls to this function
|
|
* This function may not be called in IRQ context. Calls to this function
|
|
* for a single hardware must be synchronized against each other. Calls
|
|
* for a single hardware must be synchronized against each other. Calls
|
|
- * to this function and ieee80211_tx_status_irqsafe() may not be mixed
|
|
|
|
- * for a single hardware.
|
|
|
|
|
|
+ * to this function, ieee80211_tx_status_ni() and ieee80211_tx_status_irqsafe()
|
|
|
|
+ * may not be mixed for a single hardware.
|
|
*
|
|
*
|
|
* @hw: the hardware the frame was transmitted by
|
|
* @hw: the hardware the frame was transmitted by
|
|
* @skb: the frame that was transmitted, owned by mac80211 after this call
|
|
* @skb: the frame that was transmitted, owned by mac80211 after this call
|
|
@@ -2033,14 +2033,34 @@ static inline void ieee80211_rx_ni(struct ieee80211_hw *hw,
|
|
void ieee80211_tx_status(struct ieee80211_hw *hw,
|
|
void ieee80211_tx_status(struct ieee80211_hw *hw,
|
|
struct sk_buff *skb);
|
|
struct sk_buff *skb);
|
|
|
|
|
|
|
|
+/**
|
|
|
|
+ * ieee80211_tx_status_ni - transmit status callback (in process context)
|
|
|
|
+ *
|
|
|
|
+ * Like ieee80211_tx_status() but can be called in process context.
|
|
|
|
+ *
|
|
|
|
+ * Calls to this function, ieee80211_tx_status() and
|
|
|
|
+ * ieee80211_tx_status_irqsafe() may not be mixed
|
|
|
|
+ * for a single hardware.
|
|
|
|
+ *
|
|
|
|
+ * @hw: the hardware the frame was transmitted by
|
|
|
|
+ * @skb: the frame that was transmitted, owned by mac80211 after this call
|
|
|
|
+ */
|
|
|
|
+static inline void ieee80211_tx_status_ni(struct ieee80211_hw *hw,
|
|
|
|
+ struct sk_buff *skb)
|
|
|
|
+{
|
|
|
|
+ local_bh_disable();
|
|
|
|
+ ieee80211_tx_status(hw, skb);
|
|
|
|
+ local_bh_enable();
|
|
|
|
+}
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* ieee80211_tx_status_irqsafe - IRQ-safe transmit status callback
|
|
* ieee80211_tx_status_irqsafe - IRQ-safe transmit status callback
|
|
*
|
|
*
|
|
* Like ieee80211_tx_status() but can be called in IRQ context
|
|
* Like ieee80211_tx_status() but can be called in IRQ context
|
|
* (internally defers to a tasklet.)
|
|
* (internally defers to a tasklet.)
|
|
*
|
|
*
|
|
- * Calls to this function and ieee80211_tx_status() may not be mixed for a
|
|
|
|
- * single hardware.
|
|
|
|
|
|
+ * Calls to this function, ieee80211_tx_status() and
|
|
|
|
+ * ieee80211_tx_status_ni() may not be mixed for a single hardware.
|
|
*
|
|
*
|
|
* @hw: the hardware the frame was transmitted by
|
|
* @hw: the hardware the frame was transmitted by
|
|
* @skb: the frame that was transmitted, owned by mac80211 after this call
|
|
* @skb: the frame that was transmitted, owned by mac80211 after this call
|