Fix breakage introduced in tqi_burstTime calculation in r3756
authorproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Wed, 1 Apr 2009 03:17:48 +0000 (03:17 +0000)
committerproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Wed, 1 Apr 2009 03:17:48 +0000 (03:17 +0000)
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

index 850cab1f916a8884ab7e9de9a7f73d65779f4658..aa44ac8d10075322b3827ecc88b2d2db357faa85 100644 (file)
@@ -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 "