Remove duplicate code.

This is already handled by the filter_mac_commands function.
This commit is contained in:
Orne Brocaar 2022-09-05 22:38:48 +01:00
parent 8a4b537645
commit 97a235cc80

View File

@ -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<usize> = self
.device_session
.enabled_uplink_channel_indices