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
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 "