Divide ackfailcnt by 2 (firmware decreases rate after two unsuccessful retries)

PR:		kern/197143
Submitted by:	Andriy Voskoboinyk <s3erios@gmail.com>
This commit is contained in:
Adrian Chadd 2015-03-15 20:13:58 +00:00
parent 811fe0a8fb
commit e336bd5499

View file

@ -1834,7 +1834,7 @@ wpi_tx_done(struct wpi_softc *sc, struct wpi_rx_desc *desc)
struct mbuf *m;
struct ieee80211_node *ni;
struct ieee80211vap *vap;
int ackfailcnt = stat->ackfailcnt;
int ackfailcnt = stat->ackfailcnt / 2; /* wpi_mrr_setup() */
int status = le32toh(stat->status);
KASSERT(data->ni != NULL, ("no node"));