Skip to content

Commit

Permalink
ath6kl: initialize the 'nominal_phy' field in the 'wmi_create_pstream…
Browse files Browse the repository at this point in the history
…_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>
  • Loading branch information
Chilam Ng authored and Kalle Valo committed Feb 2, 2012
1 parent 1b46dc0 commit 5fbea5d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/wireless/ath/ath6kl/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5fbea5d

Please sign in to comment.