2 unstable releases
0.3.0 | Oct 27, 2024 |
---|---|
0.2.6 | Oct 27, 2024 |
#9 in #wireless
227 downloads per month
20KB
561 lines
A lib of Linux iw command
Example
use libiw_async::*;
let iw = IW::new().await.unwrap();
let mut list = iw.interface_list().await.expect("no nic");
for card in &list {
println!("ifname: {}", card);
}
let interface = list.remove(0);
println!("scan ...");
let mut ap_list = iw.scan(&interface).await.unwrap();
if let Some(ssid) = args.ssid {
ap_list.retain(|one| one.ssid.contains(&ssid));
}
for one in ap_list {
println!("{}", one);
}
Dependencies
~6–15MB
~261K SLoC