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)
commit95c0aa15711e1e5fd62300a8abd244186ebf67e7
treec1696831ddeb116f1c2ba70a39560bd1344db68d
parent52cc916818c86abc0a123bf1e55fd71c32aa042b
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