From 52e68735c3ad2e2a9e59cda92ec5c4ebaf60a5e7 Mon Sep 17 00:00:00 2001 From: Koen Zandberg Date: Tue, 13 Nov 2018 21:11:28 +0100 Subject: [PATCH] kw2xrf: Remove PAN ID initialization from reset --- drivers/include/kw2xrf.h | 5 ----- drivers/kw2xrf/kw2xrf.c | 5 ++--- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/include/kw2xrf.h b/drivers/include/kw2xrf.h index 5baa074624..c344241fa2 100644 --- a/drivers/include/kw2xrf.h +++ b/drivers/include/kw2xrf.h @@ -42,11 +42,6 @@ extern "C" { */ #define KW2XRF_MAX_PKT_LENGTH (IEEE802154_FRAME_LEN_MAX) -/** - * @brief Default PAN ID used after initialization - */ -#define KW2XRF_DEFAULT_PANID (IEEE802154_DEFAULT_PANID) - /** * @name Default channel used after initialization * diff --git a/drivers/kw2xrf/kw2xrf.c b/drivers/kw2xrf/kw2xrf.c index 49e85ff1bc..dc5cb1c040 100644 --- a/drivers/kw2xrf/kw2xrf.c +++ b/drivers/kw2xrf/kw2xrf.c @@ -97,7 +97,6 @@ void kw2xrf_reset_phy(kw2xrf_t *dev) kw2xrf_set_channel(dev, KW2XRF_DEFAULT_CHANNEL); - kw2xrf_set_pan(dev, KW2XRF_DEFAULT_PANID); kw2xrf_set_address(dev); kw2xrf_set_cca_mode(dev, 1); @@ -115,6 +114,6 @@ void kw2xrf_reset_phy(kw2xrf_t *dev) kw2xrf_enable_irq_b(dev); - DEBUG("[kw2xrf] init phy and (re)set to channel %d and pan %d.\n", - KW2XRF_DEFAULT_CHANNEL, KW2XRF_DEFAULT_PANID); + DEBUG("[kw2xrf] init phy and (re)set to channel %d.\n", + KW2XRF_DEFAULT_CHANNEL); }