pub fn capabilities(&self) -> Result<EnumSet<crate::wifi::Capability>, WifiError> {
        let caps =
            enumset::enum_set! { Capability::Client | Capability::AccessPoint | Capability::Mixed };
        Ok(caps)
    }
Get the supported capabilities of the controller.
esp-wifi/src/wifi/mod.rs