From bd4592a06b80523767256b020b23c7f0b06747eb Mon Sep 17 00:00:00 2001
From: Koen Zandberg <koen@bergzand.net>
Date: Tue, 13 Nov 2018 21:14:16 +0100
Subject: [PATCH] cc2420: Remove netdev access from set_pan

This write access is only required when a modification to the PAN ID
happened directly via this function and not via a netdev::set operation.
The only direct call was done in the reset function of the driver
---
 drivers/cc2420/cc2420_getset.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/cc2420/cc2420_getset.c b/drivers/cc2420/cc2420_getset.c
index caac8114a0..10e3305ae4 100644
--- a/drivers/cc2420/cc2420_getset.c
+++ b/drivers/cc2420/cc2420_getset.c
@@ -114,7 +114,6 @@ uint16_t cc2420_get_pan(cc2420_t *dev)
 
 void cc2420_set_pan(cc2420_t *dev, uint16_t pan)
 {
-    dev->netdev.pan = pan;
     cc2420_ram_write(dev, CC2420_RAM_PANID, (uint8_t *)&pan, 2);
 }
 
-- 
GitLab