Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 215331
b: refs/heads/master
c: cfd8e12
h: refs/heads/master
i:
  215329: 742edb6
  215327: b93d998
v: v3
  • Loading branch information
Ben Greear authored and John W. Linville committed Oct 12, 2010
1 parent 7733d99 commit 26ead35
Show file tree
Hide file tree
Showing 2 changed files with 10 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: 5807bae7eda2d6da673c9f9f52460c3fbcea556c
refs/heads/master: cfd8e12f42746df396ecbdf7a1d8e92e8e4dbb97
9 changes: 9 additions & 0 deletions trunk/net/wireless/sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ SHOW_FMT(index, "%d", wiphy_idx);
SHOW_FMT(macaddress, "%pM", wiphy.perm_addr);
SHOW_FMT(address_mask, "%pM", wiphy.addr_mask);

static ssize_t name_show(struct device *dev,
struct device_attribute *attr,
char *buf) {
struct wiphy *wiphy = &dev_to_rdev(dev)->wiphy;
return sprintf(buf, "%s\n", dev_name(&wiphy->dev));
}


static ssize_t addresses_show(struct device *dev,
struct device_attribute *attr,
char *buf)
Expand All @@ -57,6 +65,7 @@ static struct device_attribute ieee80211_dev_attrs[] = {
__ATTR_RO(macaddress),
__ATTR_RO(address_mask),
__ATTR_RO(addresses),
__ATTR_RO(name),
{}
};

Expand Down

0 comments on commit 26ead35

Please sign in to comment.