From fa0743068326d6cc68a4f23a1e47ecb85ffed542 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 6 Apr 2023 09:19:17 +1000 Subject: [PATCH] scanner: use mangle_name for the interface name --- proto/ei-scanner | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/proto/ei-scanner b/proto/ei-scanner index 1f08922..f8d8cce 100755 --- a/proto/ei-scanner +++ b/proto/ei-scanner @@ -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: