Search Linux Wireless

Re: [PATCH] rt2x00: update fw version info in wiphy struct

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

 



On Thu, Jul 29, 2010 at 7:51 PM, John W. Linville
<linville@xxxxxxxxxxxxx> wrote:
> This makes the information available through ethtool...
>
> Signed-off-by: John W. Linville <linville@xxxxxxxxxxxxx>

Acked-by: Ivo van Doorn <IvDoorn@xxxxxxxxx>

> ---
>  drivers/net/wireless/rt2x00/rt2x00firmware.c |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/net/wireless/rt2x00/rt2x00firmware.c b/drivers/net/wireless/rt2x00/rt2x00firmware.c
> index b818a43..f0e1eb7 100644
> --- a/drivers/net/wireless/rt2x00/rt2x00firmware.c
> +++ b/drivers/net/wireless/rt2x00/rt2x00firmware.c
> @@ -63,6 +63,9 @@ static int rt2x00lib_request_firmware(struct rt2x00_dev *rt2x00dev)
>
>        INFO(rt2x00dev, "Firmware detected - version: %d.%d.\n",
>             fw->data[fw->size - 4], fw->data[fw->size - 3]);
> +       snprintf(rt2x00dev->hw->wiphy->fw_version,
> +                       sizeof(rt2x00dev->hw->wiphy->fw_version), "%d.%d",
> +                       fw->data[fw->size - 4], fw->data[fw->size - 3]);
>
>        retval = rt2x00dev->ops->lib->check_firmware(rt2x00dev, fw->data, fw->size);
>        switch (retval) {
> --
> 1.7.1.1
>
>
--
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