mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-25 02:09:42 +00:00
mac80211: A-MPDU Tx add delBA from recipient support
This patch adds the ability to handle delBA from recipient to initiator during an A-MPDU session Signed-off-by: Ron Rindjunsky <ron.rindjunsky@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
483fdcecc5
commit
d92684e660
1 changed files with 11 additions and 2 deletions
|
@ -1403,14 +1403,23 @@ static void ieee80211_sta_process_delba(struct net_device *dev,
|
||||||
|
|
||||||
#ifdef CONFIG_MAC80211_HT_DEBUG
|
#ifdef CONFIG_MAC80211_HT_DEBUG
|
||||||
if (net_ratelimit())
|
if (net_ratelimit())
|
||||||
printk(KERN_DEBUG "delba from %s on tid %d reason code %d\n",
|
printk(KERN_DEBUG "delba from %s (%s) tid %d reason code %d\n",
|
||||||
print_mac(mac, mgmt->sa), tid,
|
print_mac(mac, mgmt->sa),
|
||||||
|
initiator ? "recipient" : "initiator", tid,
|
||||||
mgmt->u.action.u.delba.reason_code);
|
mgmt->u.action.u.delba.reason_code);
|
||||||
#endif /* CONFIG_MAC80211_HT_DEBUG */
|
#endif /* CONFIG_MAC80211_HT_DEBUG */
|
||||||
|
|
||||||
if (initiator == WLAN_BACK_INITIATOR)
|
if (initiator == WLAN_BACK_INITIATOR)
|
||||||
ieee80211_sta_stop_rx_ba_session(dev, sta->addr, tid,
|
ieee80211_sta_stop_rx_ba_session(dev, sta->addr, tid,
|
||||||
WLAN_BACK_INITIATOR, 0);
|
WLAN_BACK_INITIATOR, 0);
|
||||||
|
else { /* WLAN_BACK_RECIPIENT */
|
||||||
|
spin_lock_bh(&sta->ampdu_mlme.ampdu_tx);
|
||||||
|
sta->ampdu_mlme.tid_tx[tid].state =
|
||||||
|
HT_AGG_STATE_OPERATIONAL;
|
||||||
|
spin_unlock_bh(&sta->ampdu_mlme.ampdu_tx);
|
||||||
|
ieee80211_stop_tx_ba_session(&local->hw, sta->addr, tid,
|
||||||
|
WLAN_BACK_RECIPIENT);
|
||||||
|
}
|
||||||
sta_info_put(sta);
|
sta_info_put(sta);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue