Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 102567
b: refs/heads/master
c: bc6f59b
h: refs/heads/master
i:
  102565: 2768956
  102563: e5a02fe
  102559: a11e728
v: v3
  • Loading branch information
Tomas Winkler authored and John W. Linville committed May 14, 2008
1 parent 4715a64 commit 04858fe
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f3d67999348776638644fd0035ee465261cc8c68
refs/heads/master: bc6f59bc9b2f494ca1b018622f1fbd25933bc920
20 changes: 20 additions & 0 deletions trunk/drivers/net/wireless/iwlwifi/iwl4965-base.c
Original file line number Diff line number Diff line change
Expand Up @@ -5993,6 +5993,25 @@ static DEVICE_ATTR(debug_level, S_IWUSR | S_IRUGO,
#endif /* CONFIG_IWLWIFI_DEBUG */


static ssize_t show_version(struct device *d,
struct device_attribute *attr, char *buf)
{
struct iwl_priv *priv = d->driver_data;
struct iwl4965_alive_resp *palive = &priv->card_alive;

if (palive->is_valid)
return sprintf(buf, "fw version: 0x%01X.0x%01X.0x%01X.0x%01X\n"
"fw type: 0x%01X 0x%01X\n",
palive->ucode_major, palive->ucode_minor,
palive->sw_rev[0], palive->sw_rev[1],
palive->ver_type, palive->ver_subtype);

else
return sprintf(buf, "fw not loaded\n");
}

static DEVICE_ATTR(version, S_IWUSR | S_IRUGO, show_version, NULL);

static ssize_t show_temperature(struct device *d,
struct device_attribute *attr, char *buf)
{
Expand Down Expand Up @@ -6438,6 +6457,7 @@ static struct attribute *iwl4965_sysfs_entries[] = {
#ifdef CONFIG_IWLWIFI_DEBUG
&dev_attr_debug_level.attr,
#endif
&dev_attr_version.attr,

NULL
};
Expand Down

0 comments on commit 04858fe

Please sign in to comment.