scanner: use mangle_name for the interface name

This commit is contained in:
Peter Hutterer 2023-04-06 09:19:17 +10:00
parent 99b36ba652
commit fa07430683

View file

@ -463,8 +463,7 @@ class ProtocolParser(xml.sax.handler.ContentHandler):
self.location,
)
if name.startswith("ei"):
name = f"{self.component}{name[2:]}"
name = Interface.mangle_name(name, self.component)
# We only create the interface on the first run, in subsequent runs we
# re-use them so we can cross reference correctly
if self._run_counter > 1: