You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
async def discover_wireless(self) -> dict:
result = dict(ap=[], mesh=[])
if not self.is_api_supported("network.wireless"):
return result
try:
response = await self._ubus.api_call('network.wireless', 'status', {})
for radio, item in response.items():
if radio != 'radio2': <-------------------------- modified here
for iface in item['interfaces']:
conf = dict(ifname=iface['ifname'],network=iface['config']['network'][0])
if iface['config']['mode'] == 'ap':
result['ap'].append(conf)
if iface['config']['mode'] == 'mesh':
conf['mesh_id'] = iface['config']['mesh_id']
result['mesh'].append(conf)
except NameError as err:
_LOGGER.warning(
f"Device [{self._id}] doesn't support wireless: {err}")
return result
radio2 is a device which ist not active on a wrt3200acm, it's added to the config on boot. This interface needs to be skipped, if not we get a Python KeyError
Hi and thanks for this great integration, on my OpenWRT instance I don't have WPS so I hade to disable this part in the code:
I just have normal AP clients cause running in AP mode, like:
would be great if we could add support also for this use case, thanks;)
The text was updated successfully, but these errors were encountered: