Skip to content

Commit

Permalink
rt2x00: update fw version info in wiphy struct
Browse files Browse the repository at this point in the history
This makes the information available through ethtool...

Signed-off-by: John W. Linville <linville@tuxdriver.com>
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
  • Loading branch information
John W. Linville committed Aug 16, 2010
1 parent 37269e8 commit dd358c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/wireless/rt2x00/rt2x00firmware.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit dd358c9

Please sign in to comment.