X-Git-Url: https://jxself.org/git/?p=carl9170fw.git;a=blobdiff_plain;f=carlfw%2Fsrc%2Fwlan.c;h=3661871e342e908cc001405a1660b9793e9c01d0;hp=6278b58486e570aa6570fb4e20ccd251c56f264c;hb=d097e45550d09b473b00bc0e11f5028c06173405;hpb=798526270a854de0aa9c8aca61f04a3136703b55 diff --git a/carlfw/src/wlan.c b/carlfw/src/wlan.c index 6278b58..3661871 100644 --- a/carlfw/src/wlan.c +++ b/carlfw/src/wlan.c @@ -198,6 +198,7 @@ static bool wlan_tx_consume_retry(struct carl9170_tx_superframe *super) /* update MAC flags */ super->f.hdr.mac.erp_prot = super->s.ri[super->s.rix].erp_prot; + super->f.hdr.mac.ampdu = super->s.ri[super->s.rix].ampdu; /* reinitialize try counter */ super->s.cnt = 1; @@ -290,7 +291,7 @@ static bool wlan_tx_status(struct dma_queue *queue, success = true; - if (!!(desc->ctrl & AR9170_CTRL_FAIL_MASK)) { + if (!!(desc->ctrl & AR9170_CTRL_FAIL)) { txfail = !!(desc->ctrl & AR9170_CTRL_TXFAIL); /* reset retry indicator flags */