projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b46dc0
)
ath6kl: initialize the 'nominal_phy' field in the 'wmi_create_pstream_cmd' struct...
author
Chilam Ng
<chilamng@qca.qualcomm.com>
Wed, 1 Feb 2012 09:03:37 +0000
(
01:03
-0800)
committer
Kalle Valo
<kvalo@qca.qualcomm.com>
Thu, 2 Feb 2012 08:19:54 +0000
(10:19 +0200)
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>
drivers/net/wireless/ath/ath6kl/debug.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath6kl/debug.c
b/drivers/net/wireless/ath/ath6kl/debug.c
index 6b546dc6672803e51a06552591ea7c7ca931e3a2..d832058816fefc635bd10dc408c9a5d56a22cbc9 100644
(file)
--- 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,
return -EINVAL;
pstream.medium_time = cpu_to_le32(val32);
+ pstream.nominal_phy = le32_to_cpu(pstream.min_phy_rate) / 1000000;
+
ath6kl_wmi_create_pstream_cmd(ar->wmi, vif->fw_vif_idx, &pstream);
return count;