Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>

authored by

Alexander Aring and committed by
Marcel Holtmann
fe58d016 ff4e6558

+3
+3
drivers/net/ieee802154/at86rf230.c
··· 1427 1427 chip = "at86rf231"; 1428 1428 lp->data = &at86rf231_data; 1429 1429 lp->hw->phy->channels_supported[0] = 0x7FFF800; 1430 + lp->hw->phy->current_channel = 11; 1430 1431 break; 1431 1432 case 7: 1432 1433 chip = "at86rf212"; ··· 1436 1435 lp->hw->flags |= IEEE802154_HW_LBT; 1437 1436 lp->hw->phy->channels_supported[0] = 0x00007FF; 1438 1437 lp->hw->phy->channels_supported[2] = 0x00007FF; 1438 + lp->hw->phy->current_channel = 5; 1439 1439 } else { 1440 1440 rc = -ENOTSUPP; 1441 1441 } ··· 1445 1443 chip = "at86rf233"; 1446 1444 lp->data = &at86rf233_data; 1447 1445 lp->hw->phy->channels_supported[0] = 0x7FFF800; 1446 + lp->hw->phy->current_channel = 13; 1448 1447 break; 1449 1448 default: 1450 1449 chip = "unkown";