pub fn is_ap(&self) -> bool {
        match self {
            Self::Sta => false,
            Self::Ap | Self::ApSta => true,
        }
    }
Returns true if this mode works as an access point
esp-wifi/src/wifi/mod.rs