projects
/
carl9170fw.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
carl9170 tools: fix error code propagation
[carl9170fw.git]
/
carlfw
/
src
/
hostif.c
diff --git
a/carlfw/src/hostif.c
b/carlfw/src/hostif.c
index 94c2d04f064cca3ce297843c6fa70dfd8a148c0f..0e7cbf2a23d572b614e095d6e65c5b2071c3b5a4 100644
(file)
--- a/
carlfw/src/hostif.c
+++ b/
carlfw/src/hostif.c
@@
-30,7
+30,7
@@
static bool length_check(struct dma_desc *desc)
{
static bool length_check(struct dma_desc *desc)
{
- volatile struct carl9170_tx_superframe *super =
DESC_PAYLOAD
(desc);
+ volatile struct carl9170_tx_superframe *super =
__get_super
(desc);
if (unlikely(desc->totalLen < sizeof(struct carl9170_tx_superdesc)))
return false;
if (unlikely(desc->totalLen < sizeof(struct carl9170_tx_superdesc)))
return false;
@@
-59,7
+59,7
@@
static void handle_download(void)
* is _SW ( handle_download_exception )
*/
* is _SW ( handle_download_exception )
*/
- for_each_desc_
bits(desc, &fw.pta.down_queue, AR9170_OWN_BITS_SE
) {
+ for_each_desc_
not_bits(desc, &fw.pta.down_queue, AR9170_OWN_BITS_HW
) {
if (unlikely((length_check(desc) == false))) {
/*
* There is no easy way of telling what was lost.
if (unlikely((length_check(desc) == false))) {
/*
* There is no easy way of telling what was lost.
@@
-69,6
+69,7
@@
static void handle_download(void)
* timeout mechanism.
*/
* timeout mechanism.
*/
+ wlan_tx_complete(__get_super(desc), false);
dma_reclaim(&fw.pta.down_queue, desc);
down_trigger();
} else {
dma_reclaim(&fw.pta.down_queue, desc);
down_trigger();
} else {