svn commit: r308383 - head/sys/net80211
Adrian Chadd
adrian at FreeBSD.org
Sun Nov 6 19:16:48 UTC 2016
Author: adrian
Date: Sun Nov 6 19:16:46 2016
New Revision: 308383
URL: https://svnweb.freebsd.org/changeset/base/308383
Log:
[net80211] add a method to also explicitly tear down RX A-MPDU.
The ath10k firmware API doesn't pass up the ADDBA/DELBA frames, only
WMI firmware notifications.
Tested:
* ath10k (QCA9880), doing actual (ha!) 11n!
Modified:
head/sys/net80211/ieee80211_ht.c
head/sys/net80211/ieee80211_ht.h
Modified: head/sys/net80211/ieee80211_ht.c
==============================================================================
--- head/sys/net80211/ieee80211_ht.c Sun Nov 6 18:40:12 2016 (r308382)
+++ head/sys/net80211/ieee80211_ht.c Sun Nov 6 19:16:46 2016 (r308383)
@@ -597,6 +597,19 @@ ieee80211_ampdu_rx_start_ext(struct ieee
}
/*
+ * Public function; manually stop the RX AMPDU state.
+ */
+void
+ieee80211_ampdu_rx_stop_ext(struct ieee80211_node *ni, int tid)
+{
+ struct ieee80211_rx_ampdu *rap;
+
+ /* XXX TODO: sanity check tid, seq, baw */
+ rap = &ni->ni_rx_ampdu[tid];
+ ampdu_rx_stop(ni, rap);
+}
+
+/*
* Stop A-MPDU rx processing for the specified TID.
*/
static void
Modified: head/sys/net80211/ieee80211_ht.h
==============================================================================
--- head/sys/net80211/ieee80211_ht.h Sun Nov 6 18:40:12 2016 (r308382)
+++ head/sys/net80211/ieee80211_ht.h Sun Nov 6 19:16:46 2016 (r308383)
@@ -220,6 +220,7 @@ void ieee80211_ht_update_beacon(struct i
struct ieee80211_beacon_offsets *);
int ieee80211_ampdu_rx_start_ext(struct ieee80211_node *ni, int tid,
int seq, int baw);
+void ieee80211_ampdu_rx_stop_ext(struct ieee80211_node *ni, int tid);
int ieee80211_ampdu_tx_request_ext(struct ieee80211_node *ni, int tid);
int ieee80211_ampdu_tx_request_active_ext(struct ieee80211_node *ni,
int tid, int status);
More information about the svn-src-all
mailing list