diff options
author | Chilam Ng <chilamng@qca.qualcomm.com> | 2012-02-01 04:03:37 -0500 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2012-02-02 03:19:54 -0500 |
commit | 5fbea5dcc05415474bae7108803e324f112d5b58 (patch) | |
tree | 42d0efe7272ca4c6196bd657a1f40608cff779fe | |
parent | 1b46dc04866a4962644ef32d7398e34b40f7ac21 (diff) |
ath6kl: initialize the 'nominal_phy' field in the 'wmi_create_pstream_cmd' struct for create_qos command
The nominal_phy field is uninitialized. Initialize it to min_phy_rate for
create_qos.
kvalo: simplified the equation as checkpatch complained for a too long line
Signed-off-by: Chilam Ng <chilamng@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/debug.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/debug.c b/drivers/net/wireless/ath/ath6kl/debug.c index 6b546dc66728..d832058816fe 100644 --- a/drivers/net/wireless/ath/ath6kl/debug.c +++ b/drivers/net/wireless/ath/ath6kl/debug.c | |||
@@ -1441,6 +1441,8 @@ static ssize_t ath6kl_create_qos_write(struct file *file, | |||
1441 | return -EINVAL; | 1441 | return -EINVAL; |
1442 | pstream.medium_time = cpu_to_le32(val32); | 1442 | pstream.medium_time = cpu_to_le32(val32); |
1443 | 1443 | ||
1444 | pstream.nominal_phy = le32_to_cpu(pstream.min_phy_rate) / 1000000; | ||
1445 | |||
1444 | ath6kl_wmi_create_pstream_cmd(ar->wmi, vif->fw_vif_idx, &pstream); | 1446 | ath6kl_wmi_create_pstream_cmd(ar->wmi, vif->fw_vif_idx, &pstream); |
1445 | 1447 | ||
1446 | return count; | 1448 | return count; |