提交 fe58d016 编写于 作者: A Alexander Aring 提交者: Marcel Holtmann

at86rf230: add default channel settings

This patch sets the reset state channels accoridng at86rf2xx datasheets.
We don't need to set the default page here which is zero on all chips.
Signed-off-by: NAlexander Aring <alex.aring@gmail.com>
Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
上级 ff4e6558
...@@ -1427,6 +1427,7 @@ at86rf230_detect_device(struct at86rf230_local *lp) ...@@ -1427,6 +1427,7 @@ at86rf230_detect_device(struct at86rf230_local *lp)
chip = "at86rf231"; chip = "at86rf231";
lp->data = &at86rf231_data; lp->data = &at86rf231_data;
lp->hw->phy->channels_supported[0] = 0x7FFF800; lp->hw->phy->channels_supported[0] = 0x7FFF800;
lp->hw->phy->current_channel = 11;
break; break;
case 7: case 7:
chip = "at86rf212"; chip = "at86rf212";
...@@ -1435,6 +1436,7 @@ at86rf230_detect_device(struct at86rf230_local *lp) ...@@ -1435,6 +1436,7 @@ at86rf230_detect_device(struct at86rf230_local *lp)
lp->hw->flags |= IEEE802154_HW_LBT; lp->hw->flags |= IEEE802154_HW_LBT;
lp->hw->phy->channels_supported[0] = 0x00007FF; lp->hw->phy->channels_supported[0] = 0x00007FF;
lp->hw->phy->channels_supported[2] = 0x00007FF; lp->hw->phy->channels_supported[2] = 0x00007FF;
lp->hw->phy->current_channel = 5;
} else { } else {
rc = -ENOTSUPP; rc = -ENOTSUPP;
} }
...@@ -1443,6 +1445,7 @@ at86rf230_detect_device(struct at86rf230_local *lp) ...@@ -1443,6 +1445,7 @@ at86rf230_detect_device(struct at86rf230_local *lp)
chip = "at86rf233"; chip = "at86rf233";
lp->data = &at86rf233_data; lp->data = &at86rf233_data;
lp->hw->phy->channels_supported[0] = 0x7FFF800; lp->hw->phy->channels_supported[0] = 0x7FFF800;
lp->hw->phy->current_channel = 13;
break; break;
default: default:
chip = "unkown"; chip = "unkown";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册