pub async fn scan_with_config_async(
        &mut self,
        config: ScanConfig<'_>,
    ) -> Result<alloc::vec::Vec<AccessPointInfo>, WifiError> {
        self.scan_with_config_async_max(config, usize::MAX).await
    }
An async wifi network scan with caller-provided scanning options.
esp-wifi/src/wifi/mod.rs