| 335 | } |
| 336 | |
| 337 | fn validate_region_config_id(&self) -> Result<(), Error> { |
| 338 | trace!("Validating region_config_id against device-profile"); |
| 339 | |
| 340 | let dp = self.device_profile.as_ref().unwrap(); |
| 341 | if let Some(v) = &dp.region_config_id |
| 342 | && !self.uplink_frame_set.region_config_id.eq(v) |
| 343 | { |
| 344 | warn!("Aborting as region config ID does not match with device-profile"); |
| 345 | return Err(Error::Abort); |
| 346 | } |
| 347 | |
| 348 | Ok(()) |
| 349 | } |
| 350 | |
| 351 | fn filter_rx_info_by_tenant(&mut self) -> Result<()> { |
| 352 | trace!("Filtering rx_info by tenant_id"); |