|
@@ -123,13 +123,18 @@ void ieee80211_send_bar(struct ieee80211_sub_if_data *sdata, u8 *ra, u16 tid, u1
|
|
|
ieee80211_tx_skb(sdata, skb, 0);
|
|
|
}
|
|
|
|
|
|
-static int ___ieee80211_stop_tx_ba_session(struct sta_info *sta, u16 tid,
|
|
|
- enum ieee80211_back_parties initiator)
|
|
|
+int ___ieee80211_stop_tx_ba_session(struct sta_info *sta, u16 tid,
|
|
|
+ enum ieee80211_back_parties initiator)
|
|
|
{
|
|
|
struct ieee80211_local *local = sta->local;
|
|
|
int ret;
|
|
|
u8 *state;
|
|
|
|
|
|
+#ifdef CONFIG_MAC80211_HT_DEBUG
|
|
|
+ printk(KERN_DEBUG "Tx BA session stop requested for %pM tid %u\n",
|
|
|
+ sta->sta.addr, tid);
|
|
|
+#endif /* CONFIG_MAC80211_HT_DEBUG */
|
|
|
+
|
|
|
state = &sta->ampdu_mlme.tid_state_tx[tid];
|
|
|
|
|
|
if (*state == HT_AGG_STATE_OPERATIONAL)
|
|
@@ -143,7 +148,6 @@ static int ___ieee80211_stop_tx_ba_session(struct sta_info *sta, u16 tid,
|
|
|
|
|
|
/* HW shall not deny going back to legacy */
|
|
|
if (WARN_ON(ret)) {
|
|
|
- *state = HT_AGG_STATE_OPERATIONAL;
|
|
|
/*
|
|
|
* We may have pending packets get stuck in this case...
|
|
|
* Not bothering with a workaround for now.
|
|
@@ -525,11 +529,6 @@ int __ieee80211_stop_tx_ba_session(struct sta_info *sta, u16 tid,
|
|
|
goto unlock;
|
|
|
}
|
|
|
|
|
|
-#ifdef CONFIG_MAC80211_HT_DEBUG
|
|
|
- printk(KERN_DEBUG "Tx BA session stop requested for %pM tid %u\n",
|
|
|
- sta->sta.addr, tid);
|
|
|
-#endif /* CONFIG_MAC80211_HT_DEBUG */
|
|
|
-
|
|
|
ret = ___ieee80211_stop_tx_ba_session(sta, tid, initiator);
|
|
|
|
|
|
unlock:
|
|
@@ -545,7 +544,7 @@ int ieee80211_stop_tx_ba_session(struct ieee80211_hw *hw,
|
|
|
struct sta_info *sta;
|
|
|
int ret = 0;
|
|
|
|
|
|
- if (WARN_ON(!local->ops->ampdu_action))
|
|
|
+ if (!local->ops->ampdu_action)
|
|
|
return -EINVAL;
|
|
|
|
|
|
if (tid >= STA_TID_NUM)
|