From 97a235cc8006e5bb074c4ee1da1e94be5dcd00b8 Mon Sep 17 00:00:00 2001 From: Orne Brocaar Date: Mon, 5 Sep 2022 22:38:48 +0100 Subject: [PATCH] Remove duplicate code. This is already handled by the filter_mac_commands function. --- chirpstack/src/downlink/data.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/chirpstack/src/downlink/data.rs b/chirpstack/src/downlink/data.rs index 68950830..ad17b345 100644 --- a/chirpstack/src/downlink/data.rs +++ b/chirpstack/src/downlink/data.rs @@ -823,17 +823,6 @@ impl Data { async fn _request_channel_mask_reconfiguration(&mut self) -> Result<()> { trace!("Requesting channel-mask reconfiguration"); - // The channel-mask reconfiguration (using LinkADRReq) is incompatible with the - // NewChannelReq. - for set in &self.mac_commands { - for mac in &**set { - if let lrwn::MACCommand::NewChannelReq(_) = &mac { - trace!("Skipping channel-mask reconfiguration due to pending NewChannelReq"); - return Ok(()); - } - } - } - let enabled_uplink_channel_indices: Vec = self .device_session .enabled_uplink_channel_indices