From 357eed551d7eb9e0d59b54f3e48114a18417d86c Mon Sep 17 00:00:00 2001 From: Koen Zandberg <koen@bergzand.net> Date: Tue, 13 Nov 2018 21:12:10 +0100 Subject: [PATCH] at86rf2xx: 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/at86rf2xx/at86rf2xx_getset.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/at86rf2xx/at86rf2xx_getset.c b/drivers/at86rf2xx/at86rf2xx_getset.c index 96bdd37a15..f6cec5aaac 100644 --- a/drivers/at86rf2xx/at86rf2xx_getset.c +++ b/drivers/at86rf2xx/at86rf2xx_getset.c @@ -222,7 +222,6 @@ void at86rf2xx_set_pan(at86rf2xx_t *dev, uint16_t pan) { le_uint16_t le_pan = byteorder_btols(byteorder_htons(pan)); - dev->netdev.pan = pan; DEBUG("pan0: %u, pan1: %u\n", le_pan.u8[0], le_pan.u8[1]); at86rf2xx_reg_write(dev, AT86RF2XX_REG__PAN_ID_0, le_pan.u8[0]); at86rf2xx_reg_write(dev, AT86RF2XX_REG__PAN_ID_1, le_pan.u8[1]); -- GitLab