From 8d2dafbe306ae9fa1c32b877f22073bc10e1f955 Mon Sep 17 00:00:00 2001 From: Adam Dunkels Date: Wed, 2 Sep 2015 12:18:27 +0200 Subject: [PATCH] No need to set the same channel again --- cpu/cc26xx-cc13xx/rf-core/ieee-mode.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cpu/cc26xx-cc13xx/rf-core/ieee-mode.c b/cpu/cc26xx-cc13xx/rf-core/ieee-mode.c index da83b5bf1..c4a8860a6 100644 --- a/cpu/cc26xx-cc13xx/rf-core/ieee-mode.c +++ b/cpu/cc26xx-cc13xx/rf-core/ieee-mode.c @@ -1219,6 +1219,12 @@ set_value(radio_param_t param, radio_value_t value) return RADIO_RESULT_INVALID_VALUE; } + if(cmd->channel == (uint8_t)value) { + /* We already have that very same channel configured. + * Nothing to do here. */ + return RADIO_RESULT_OK; + } + cmd->channel = (uint8_t)value; break; case RADIO_PARAM_PAN_ID: