Search Linux Wireless

Re: [PATCH] ath6kl: initialize the 'nominal_phy' field in the 'wmi_create_pstream_cmd' struct for create_qos command

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 02/01/2012 11:03 AM, Chilam Ng wrote:
> The nominal_phy field is uninitialized. Initialize it to min_phy_rate for create_qos
> 
> Signed-off-by: Chilam Ng <chilamng@xxxxxxxxxxxxxxxx>

Thanks, applied with a small change:

> +	pstream.nominal_phy = ((le32_to_cpu(pstream.min_phy_rate) / 1000) / 1000);

Checkpatch complained that this line was too long so I simplified the
equation:

pstream.nominal_phy = le32_to_cpu(pstream.min_phy_rate) / 1000000;

Please holler if I did the math wrong :)

Kalle
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux