diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-02-10 10:49:38 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-02-29 15:37:07 -0500 |
commit | 3330d7be7008fa8e213648750fc13613eecc54bb (patch) | |
tree | 89f8ce89b984819144d6643e7c4a5e7e2d67e7cc /drivers/net/wireless/iwlwifi/iwl3945-base.c | |
parent | bb1eeff12d4cd6c706ef9fae340a9c93bb41ad05 (diff) |
mac80211: give burst time in txop rather than 0.1msec units
This changes mac80211 to pass the burst time to conf_tx in txop
units rather than 0.1msec units. 0.1msec units are only required
by atheros hardware (according to current driver support), all
other drivers do other calculations or require the txop value.
Therefore, it results in fewer calculations and more precision
if we just pass the txop value through to the driver.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Acked-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl3945-base.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl3945-base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c index 4ad26f7613c5..bb3a5f633227 100644 --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c +++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c | |||
@@ -7442,7 +7442,7 @@ static int iwl3945_mac_conf_tx(struct ieee80211_hw *hw, int queue, | |||
7442 | priv->qos_data.def_qos_parm.ac[q].cw_max = cpu_to_le16(params->cw_max); | 7442 | priv->qos_data.def_qos_parm.ac[q].cw_max = cpu_to_le16(params->cw_max); |
7443 | priv->qos_data.def_qos_parm.ac[q].aifsn = params->aifs; | 7443 | priv->qos_data.def_qos_parm.ac[q].aifsn = params->aifs; |
7444 | priv->qos_data.def_qos_parm.ac[q].edca_txop = | 7444 | priv->qos_data.def_qos_parm.ac[q].edca_txop = |
7445 | cpu_to_le16((params->burst_time * 100)); | 7445 | cpu_to_le16((params->txop * 32)); |
7446 | 7446 | ||
7447 | priv->qos_data.def_qos_parm.ac[q].reserved1 = 0; | 7447 | priv->qos_data.def_qos_parm.ac[q].reserved1 = 0; |
7448 | priv->qos_data.qos_active = 1; | 7448 | priv->qos_data.qos_active = 1; |