|
@@ -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)
|
|
@@ -57,6 +65,7 @@ static struct device_attribute ieee80211_dev_attrs[] = {
|
|
|
__ATTR_RO(macaddress),
|
|
|
__ATTR_RO(address_mask),
|
|
|
__ATTR_RO(addresses),
|
|
|
+ __ATTR_RO(name),
|
|
|
{}
|
|
|
};
|
|
|
|