summaryrefslogtreecommitdiff
path: root/net/ieee802154/sysfs.c
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2014-12-10 14:33:12 (GMT)
committerMarcel Holtmann <marcel@holtmann.org>2014-12-18 23:19:23 (GMT)
commit7fe9a3882bb37195c41ab125a0f2852398d2646a (patch)
tree2575090079228f59a93466eaf2d1b69524b97e8a /net/ieee802154/sysfs.c
parentb40d6376ff470572e2fafb20ca06a68f2d7940cb (diff)
downloadlinux-7fe9a3882bb37195c41ab125a0f2852398d2646a.tar.xz
ieee802154: rework cca setting
The current cca setting handle is a driver specific call. We need to introduce some 802.15.4 specific layer and mapping 802.15.4 cca modes to driver specific ones inside the 802.15.4 driver. This patch will add such 802.15.4 layer and mapping the cca settings to driver specific ones. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/ieee802154/sysfs.c')
-rw-r--r--net/ieee802154/sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ieee802154/sysfs.c b/net/ieee802154/sysfs.c
index 1613b9c..dff55c2 100644
--- a/net/ieee802154/sysfs.c
+++ b/net/ieee802154/sysfs.c
@@ -68,7 +68,7 @@ static DEVICE_ATTR_RO(name)
MASTER_SHOW(current_channel, "%d");
MASTER_SHOW(current_page, "%d");
MASTER_SHOW(transmit_power, "%d +- 1 dB");
-MASTER_SHOW(cca_mode, "%d");
+MASTER_SHOW_COMPLEX(cca_mode, "%d", phy->cca.mode);
static ssize_t channels_supported_show(struct device *dev,
struct device_attribute *attr,