1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

kw2xrf: Don't propagate NETOPT_CHANNEL setter

This modification changes the netdev::set function for the kw2xrf to not
propagate the NETOPT_CHANNEL to the generic netdev_ieee802154 code
This commit is contained in:
Koen Zandberg 2018-12-03 10:16:08 +01:00
parent 603b754d24
commit e3eaf4671f
No known key found for this signature in database
GPG Key ID: 0895A893E6D2985B

View File

@ -427,8 +427,7 @@ static int _set(netdev_t *netdev, netopt_t opt, const void *value, size_t len)
res = -EINVAL;
break;
}
dev->netdev.chan = chan;
/* don't set res to set netdev_ieee802154_t::chan */
res = sizeof(uint16_t);
}
break;