diff --git a/networkmanager/Cargo.toml b/networkmanager/Cargo.toml
index 783edce..bb1fef5 100644
--- a/networkmanager/Cargo.toml
+++ b/networkmanager/Cargo.toml
@@ -7,6 +7,8 @@ license = "MPL-2.0"
[dependencies]
bitflags = "1.3.2"
derive_builder = "0.10.2"
+procfs = { version = "0.12.0", default-features = false }
+time = "0.3.7"
zbus = "2.0.1"
[features]
diff --git a/networkmanager/src/access_point.rs b/networkmanager/src/access_point.rs
index 99a5f07..8fc9de3 100644
--- a/networkmanager/src/access_point.rs
+++ b/networkmanager/src/access_point.rs
@@ -1,23 +1,23 @@
// SPDX-License-Identifier: MPL-2.0
-use crate::interface::{
- access_point::AccessPointProxy,
- enums::{ApFlags, ApSecurityFlags},
+use crate::{
+ interface::{
+ access_point::AccessPointProxy,
+ enums::{ApFlags, ApSecurityFlags},
+ },
+ util::clock_boottime_to_time,
};
use std::ops::Deref;
+use time::OffsetDateTime;
use zbus::Result;
#[derive(Debug)]
pub struct AccessPoint<'a>(AccessPointProxy<'a>);
impl<'a> AccessPoint<'a> {
- /* TODO: figure out how to convert CLOCK_BOOTTIME to SystemTime, as CLOCK_BOOTTIME's starting point is arbritary and not guaranteed to match up with the UNIX Epoch
- pub async fn last_seen(&self) -> Result