]> git.baikalelectronics.ru Git - kernel.git/commit
mac802154: iface: fix order while interface up
authorAlexander Aring <alex.aring@gmail.com>
Wed, 17 Jun 2015 13:35:17 +0000 (15:35 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 17 Jun 2015 14:00:40 +0000 (16:00 +0200)
commitff28ddcc442c5d80073f2d41f0ca1838edf16e29
treec1696831ddeb116f1c2ba70a39560bd1344db68d
parent967f35cc151584b923c528641563a7bedf076266
mac802154: iface: fix order while interface up

This patch moves the hardware setting before calling the driver start
callback which activates the receive handling. The hardware setup
contains settings like address filtering which should be setup before
activate the receive handling on the transceiver. These setting are
protected by ieee802154_check_concurrent_iface check. This means we
need to set these registers once before calling drv_start and can't
be overwritten by other interfaces.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/mac802154/iface.c