Skip to content
Permalink
Browse files

drivers/ieee802154: Fix KW41Z driver fault

KW41Z IEEE802154 driver fix, by adding an empty configure function
to resolve HardFault at start up

Signed-off-by: Tobias Schlaepfer <scpf@zhaw.ch>
  • Loading branch information...
Tobias Schlaepfer authored and nashif committed May 21, 2019
1 parent c7c02fc commit c88c91942d984e4c2ad2b3484576d39c2538858d
Showing with 7 additions and 0 deletions.
  1. +7 −0 drivers/ieee802154/ieee802154_kw41z.c
@@ -1020,6 +1020,12 @@ static void kw41z_iface_init(struct net_if *iface)
ieee802154_init(iface);
}

static int kw41z_configure(struct device *dev, enum ieee802154_config_type type,
const struct ieee802154_config *config)
{
return 0;
}

static struct ieee802154_radio_api kw41z_radio_api = {
.iface_api.init = kw41z_iface_init,

@@ -1031,6 +1037,7 @@ static struct ieee802154_radio_api kw41z_radio_api = {
.start = kw41z_start,
.stop = kw41z_stop,
.tx = kw41z_tx,
.configure = kw41z_configure,
};

#if defined(CONFIG_NET_L2_IEEE802154)

0 comments on commit c88c919

Please sign in to comment.
You can’t perform that action at this time.