MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / _get_cached_interface_networks

Method _get_cached_interface_networks

wifi_manager.py:213–218  ·  view source on GitHub ↗
(self, interface)

Source from the content-addressed store, hash-verified

211 if self._client_iface_cache and (now - self._client_iface_cache_ts) < 10.0:
212 return self._client_iface_cache
213 iface = self._find_secondary_wifi_interface() or self.default_wifi_interface
214 self._client_iface_cache = iface
215 self._client_iface_cache_ts = now
216 return iface
217
218 def _has_dedicated_client_radio(self):
219 """True when the client connection has a radio of its own, so bringing
220 Wi-Fi up does not require tearing the AP down."""
221 return self._client_wifi_interface() != self.ap_interface

Callers 3

scan_networksMethod · 0.95

Calls 2

getMethod · 0.45

Tested by

no test coverage detected