diff options
author | adrian <adrian@FreeBSD.org> | 2014-04-21 02:05:51 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2014-04-21 02:05:51 +0000 |
commit | af79794fb4569dab6c37c2c699c96b8a30a3dcd9 (patch) | |
tree | ad2a62bd72c45c7b73bc5bd63ea8794f9e6e94e9 /sys/dev/ath | |
parent | 7f7e4e96be056af9f0e51b4e0cc806184079112b (diff) | |
download | FreeBSD-src-af79794fb4569dab6c37c2c699c96b8a30a3dcd9.zip FreeBSD-src-af79794fb4569dab6c37c2c699c96b8a30a3dcd9.tar.gz |
Make sure bf_next is NULL'ed out when we're completing up an aggregate
frame through the cleanup path.
Whilst here, fix the indenting for something I messed up.
Tested:
* AR5416, STA mode
Diffstat (limited to 'sys/dev/ath')
-rw-r--r-- | sys/dev/ath/if_ath_tx.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ath/if_ath_tx.c b/sys/dev/ath/if_ath_tx.c index 9674f93..fe05424 100644 --- a/sys/dev/ath/if_ath_tx.c +++ b/sys/dev/ath/if_ath_tx.c @@ -4600,10 +4600,11 @@ ath_tx_comp_cleanup_aggr(struct ath_softc *sc, struct ath_buf *bf_first) ATH_TX_UNLOCK(sc); - /* Handle frame completion */ + /* Handle frame completion as individual frames */ bf = bf_first; while (bf) { bf_next = bf->bf_next; + bf->bf_next = NULL; ath_tx_default_comp(sc, bf, 1); bf = bf_next; } @@ -5849,7 +5850,7 @@ ath_tx_node_reassoc(struct ath_softc *sc, struct ath_node *an) ":", i); /* - * In case there's a followup call to this, only call it + * In case there's a followup call to this, only call it * if we don't have a cleanup in progress. */ if (! tid->cleanup_inprogress) { |