summaryrefslogtreecommitdiff
path: root/drivers/net/ieee802154
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2014-12-10 17:33:14 +0300
committerMarcel Holtmann <marcel@holtmann.org>2014-12-19 02:19:24 +0300
commitb48a7c1880e10be30a7b61db0108498693d41eb5 (patch)
treed0320c188bed198cccae8e0cc5e2b3fa49dcf1b5 /drivers/net/ieee802154
parentba2a9506a76450568cbc0d51626d94cf8528c0c7 (diff)
downloadlinux-b48a7c1880e10be30a7b61db0108498693d41eb5.tar.xz
at86rf230: add reset state cca handling
This patch adds the default cca setting after device reset for at86rf230 driver. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/net/ieee802154')
-rw-r--r--drivers/net/ieee802154/at86rf230.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c
index 1ac46ba41fd8..0626e7d09a72 100644
--- a/drivers/net/ieee802154/at86rf230.c
+++ b/drivers/net/ieee802154/at86rf230.c
@@ -1441,6 +1441,8 @@ at86rf230_detect_device(struct at86rf230_local *lp)
IEEE802154_HW_TXPOWER | IEEE802154_HW_ARET |
IEEE802154_HW_AFILT | IEEE802154_HW_PROMISCUOUS;
+ lp->hw->phy->cca.mode = NL802154_CCA_ENERGY;
+
switch (part) {
case 2:
chip = "at86rf230";