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>
This commit is contained in:
Alexander Aring 2014-12-10 15:33:14 +01:00 committed by Marcel Holtmann
parent ba2a9506a7
commit b48a7c1880
1 changed files with 2 additions and 0 deletions

View File

@ -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";