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