Return a deduplicated list of Ragnar-configured SSIDs.
(self)
| 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 |
no test coverage detected