diff options
Diffstat (limited to 'drivers/net/wireless/ipw2200.c')
-rw-r--r-- | drivers/net/wireless/ipw2200.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/drivers/net/wireless/ipw2200.c b/drivers/net/wireless/ipw2200.c index be31304dfad5..97a6ff50eb80 100644 --- a/drivers/net/wireless/ipw2200.c +++ b/drivers/net/wireless/ipw2200.c | |||
@@ -6904,7 +6904,7 @@ static int ipw_qos_activate(struct ipw_priv *priv, | |||
6904 | burst_duration = ipw_qos_get_burst_duration(priv); | 6904 | burst_duration = ipw_qos_get_burst_duration(priv); |
6905 | for (i = 0; i < QOS_QUEUE_NUM; i++) | 6905 | for (i = 0; i < QOS_QUEUE_NUM; i++) |
6906 | qos_parameters[QOS_PARAM_SET_ACTIVE].tx_op_limit[i] = | 6906 | qos_parameters[QOS_PARAM_SET_ACTIVE].tx_op_limit[i] = |
6907 | (u16)burst_duration; | 6907 | cpu_to_le16(burst_duration); |
6908 | } else if (priv->ieee->iw_mode == IW_MODE_ADHOC) { | 6908 | } else if (priv->ieee->iw_mode == IW_MODE_ADHOC) { |
6909 | if (type == IEEE_B) { | 6909 | if (type == IEEE_B) { |
6910 | IPW_DEBUG_QOS("QoS activate IBSS nework mode %d\n", | 6910 | IPW_DEBUG_QOS("QoS activate IBSS nework mode %d\n", |
@@ -6936,20 +6936,11 @@ static int ipw_qos_activate(struct ipw_priv *priv, | |||
6936 | burst_duration = ipw_qos_get_burst_duration(priv); | 6936 | burst_duration = ipw_qos_get_burst_duration(priv); |
6937 | for (i = 0; i < QOS_QUEUE_NUM; i++) | 6937 | for (i = 0; i < QOS_QUEUE_NUM; i++) |
6938 | qos_parameters[QOS_PARAM_SET_ACTIVE]. | 6938 | qos_parameters[QOS_PARAM_SET_ACTIVE]. |
6939 | tx_op_limit[i] = (u16)burst_duration; | 6939 | tx_op_limit[i] = cpu_to_le16(burst_duration); |
6940 | } | 6940 | } |
6941 | } | 6941 | } |
6942 | 6942 | ||
6943 | IPW_DEBUG_QOS("QoS sending IPW_CMD_QOS_PARAMETERS\n"); | 6943 | IPW_DEBUG_QOS("QoS sending IPW_CMD_QOS_PARAMETERS\n"); |
6944 | for (i = 0; i < 3; i++) { | ||
6945 | int j; | ||
6946 | for (j = 0; j < QOS_QUEUE_NUM; j++) { | ||
6947 | qos_parameters[i].cw_min[j] = cpu_to_le16(qos_parameters[i].cw_min[j]); | ||
6948 | qos_parameters[i].cw_max[j] = cpu_to_le16(qos_parameters[i].cw_max[j]); | ||
6949 | qos_parameters[i].tx_op_limit[j] = cpu_to_le16(qos_parameters[i].tx_op_limit[j]); | ||
6950 | } | ||
6951 | } | ||
6952 | |||
6953 | err = ipw_send_qos_params_command(priv, | 6944 | err = ipw_send_qos_params_command(priv, |
6954 | (struct ieee80211_qos_parameters *) | 6945 | (struct ieee80211_qos_parameters *) |
6955 | &(qos_parameters[0])); | 6946 | &(qos_parameters[0])); |