Skip to content
Snippets Groups Projects
Unverified Commit b025362a authored by Koen Zandberg's avatar Koen Zandberg
Browse files

at86rf2xx: Always set channel on device

This removes the check if the current configured channel equals the new
channel. This check prevents the at86rf2xx channel to be configured
after a reset which causes the radio to be non-functional after a
NETOPT_STATE_RESET.
parent 838b18e8
No related branches found
No related tags found
No related merge requests found
......@@ -140,11 +140,11 @@ uint8_t at86rf2xx_get_chan(const at86rf2xx_t *dev)
void at86rf2xx_set_chan(at86rf2xx_t *dev, uint8_t channel)
{
if ((channel > AT86RF2XX_MAX_CHANNEL) ||
if ((channel > AT86RF2XX_MAX_CHANNEL)
#if AT86RF2XX_MIN_CHANNEL /* is zero for sub-GHz */
(channel < AT86RF2XX_MIN_CHANNEL) ||
|| (channel < AT86RF2XX_MIN_CHANNEL)
#endif
(dev->netdev.chan == channel)) {
) {
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment