diff options
author | adrian <adrian@FreeBSD.org> | 2012-08-19 02:16:22 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2012-08-19 02:16:22 +0000 |
commit | 5ab9e66230765126176960b49c6b6480f976ef43 (patch) | |
tree | 825d50e546611cbe71e6476be93056a6377eeba4 /sys/dev/ath/if_ath_debug.c | |
parent | caa9902fff4e1a2aa79fe76139984b98ddbf4360 (diff) | |
download | FreeBSD-src-5ab9e66230765126176960b49c6b6480f976ef43.zip FreeBSD-src-5ab9e66230765126176960b49c6b6480f976ef43.tar.gz |
When assembling the descriptor list, make sure that the "first" descriptor
is marked correctly.
The existing logic assumed that the first descriptor is i == 0, which
doesn't hold for EDMA TX. In this instance, the first time filltxdesc()
is called can be up to i == 3.
So for a two-buffer descriptor:
* firstSeg is set to 0;
* lastSeg is set to 1;
* the ath_hal_filltxdesc() code will treat it as the last segment in
a descriptor chain and blank some of the descriptor fields, causing
the TX to stop.
When firstSeg is set to 1 (regardless of lastSeg), it overrides the
lastSeg setting. Thus, ath_hal_filltxdesc() won't blank out these
fields.
Tested: AR9380, STA mode. With this, association is successful.
Diffstat (limited to 'sys/dev/ath/if_ath_debug.c')
0 files changed, 0 insertions, 0 deletions