From 77e18d22690015f80739e201f498133b0ca570b8 Mon Sep 17 00:00:00 2001 From: proski Date: Wed, 1 Apr 2009 03:17:48 +0000 Subject: [PATCH] Fix breakage introduced in tqi_burstTime calculation in r3756 Use IEEE80211_TXOP_TO_US for unit conversion. Found by Derek Smithies. git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3954 0192ed92-7a03-0410-a25b-9323aeb14dbd --- ath/if_ath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ath/if_ath.c b/ath/if_ath.c index 850cab1..aa44ac8 100644 --- a/ath/if_ath.c +++ b/ath/if_ath.c @@ -7323,7 +7323,7 @@ ath_txq_update(struct ath_softc *sc, struct ath_txq *txq, int ac) qi.tqi_aifs = wmep->wmep_aifsn; qi.tqi_cwmin = (1 << wmep->wmep_logcwmin) - 1; qi.tqi_cwmax = (1 << wmep->wmep_logcwmax) - 1; - qi.tqi_burstTime = wmep->wmep_txopLimit / 32; /* 32 us units. */ + qi.tqi_burstTime = IEEE80211_TXOP_TO_US(wmep->wmep_txopLimit); if (!ath_hal_settxqueueprops(ah, txq->axq_qnum, &qi)) { EPRINTF(sc, "Unable to update hardware queue " -- 2.35.1