wlan_common/ie/rsn/
mod.rs1pub mod akm;
6pub mod cipher;
7pub mod fake_rsnes;
8mod pmkid;
9pub mod rsne;
10pub mod suite_filter;
11pub mod suite_selector;
12
13pub use fake_rsnes::*;
14pub use suite_selector::OUI;
15
16use thiserror::Error;
17
18#[derive(Debug, Error)]
19pub enum Error {
20 #[error("unexpected IO error: {}", _0)]
21 UnexpectedIoError(std::io::Error),
22 #[error("invalid OUI length; expected 3 bytes but received {}", _0)]
23 InvalidOuiLength(usize),
24 #[error("invalid PMKID length; expected 16 bytes but received {}", _0)]
25 InvalidPmkidLength(usize),
26}
27
28impl From<std::io::Error> for Error {
29 fn from(e: std::io::Error) -> Self {
30 Error::UnexpectedIoError(e)
31 }
32}