wlan_common/ie/rsn/
mod.rspub mod akm;
pub mod cipher;
pub mod fake_rsnes;
mod pmkid;
pub mod rsne;
pub mod suite_filter;
pub mod suite_selector;
pub use fake_rsnes::*;
pub use suite_selector::OUI;
use thiserror::Error;
#[derive(Debug, Error)]
pub enum Error {
#[error("unexpected IO error: {}", _0)]
UnexpectedIoError(std::io::Error),
#[error("invalid OUI length; expected 3 bytes but received {}", _0)]
InvalidOuiLength(usize),
#[error("invalid PMKID length; expected 16 bytes but received {}", _0)]
InvalidPmkidLength(usize),
}
impl From<std::io::Error> for Error {
fn from(e: std::io::Error) -> Self {
Error::UnexpectedIoError(e)
}
}