(&mut self)
| 1520 | } |
| 1521 | |
| 1522 | async fn _set_tx_parameters(&mut self) -> Result<()> { |
| 1523 | trace!("Setting tx parameters"); |
| 1524 | let ds = self.device.get_device_session_mut()?; |
| 1525 | |
| 1526 | if !self |
| 1527 | .region_conf |
| 1528 | .implements_tx_param_setup(ds.mac_version().from_proto()) |
| 1529 | { |
| 1530 | return Ok(()); |
| 1531 | } |
| 1532 | |
| 1533 | let uplink_eirp_index = |
| 1534 | lrwn::get_tx_param_setup_eirp_index(self.network_conf.uplink_max_eirp); |
| 1535 | |
| 1536 | if ds.uplink_dwell_time_400ms != self.network_conf.uplink_dwell_time_400ms |
| 1537 | || ds.downlink_dwell_time_400ms != self.network_conf.downlink_dwell_time_400ms |
| 1538 | || ds.uplink_max_eirp_index as u8 != uplink_eirp_index |
| 1539 | { |
| 1540 | let set = maccommand::tx_param_setup::request( |
| 1541 | self.network_conf.uplink_dwell_time_400ms, |
| 1542 | self.network_conf.downlink_dwell_time_400ms, |
| 1543 | uplink_eirp_index, |
| 1544 | ); |
| 1545 | self.mac_commands.push(set); |
| 1546 | } |
| 1547 | |
| 1548 | Ok(()) |
| 1549 | } |
| 1550 | |
| 1551 | async fn _update_uplink_list(&mut self) -> Result<()> { |
| 1552 | trace!("Updating Relay uplink list"); |
no test coverage detected