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

Method _get_known_ssids

wifi_manager.py:220–235  ·  view source on GitHub ↗

Return a deduplicated list of Ragnar-configured SSIDs.

(self)

Source from the content-addressed store, hash-verified

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
222
223 def _find_secondary_wifi_interface(self):
224 """Find a WiFi interface that is NOT being used for AP mode.
225
226 Returns the interface name (e.g. 'wlan1') or None if only one
227 WiFi adapter is present.
228 """
229 try:
230 interfaces = gather_wifi_interfaces(self.default_wifi_interface)
231 for iface in interfaces:
232 name = iface.get('name', '')
233 if name and name != self.ap_interface:
234 self.logger.info(f"Secondary WiFi interface found: {name}")
235 return name
236 except Exception as exc:
237 self.logger.debug(f"Unable to detect secondary WiFi interface: {exc}")
238 return None

Callers 3

_run_iwlist_scanMethod · 0.95
scan_networksMethod · 0.95

Calls 5

appendMethod · 0.80
addMethod · 0.80
debugMethod · 0.80
setFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected