From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Marco d'Itri" Date: Wed, 15 Apr 2009 13:43:31 +0000 Subject: Bug#499868: udev: multiple mac80211 interfaces created on the same Message-Id: <20090415134331.GA12085@bongo.bofh.it> MIME-Version: 1 Content-Type: multipart/mixed; boundary="ew6BAiZeqk4r7MaW" List-Id: References: <20090406173127.GA3761@bongo.bofh.it> In-Reply-To: <20090406173127.GA3761@bongo.bofh.it> To: linux-hotplug@vger.kernel.org --ew6BAiZeqk4r7MaW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Does anybody have good ideas about how to fix this case? Everything in the udevinfo output is identical except: - ATTR{link_mode}=3D=3D"1" + ATTR{link_mode}=3D=3D"0" - ATTR{carrier}=3D=3D"1" - ATTR{dormant}=3D=3D"0" - ATTR{flags}=3D=3D"0x1003" + ATTR{flags}=3D=3D"0x1002" (The first one is the "real" interface.) ----- Forwarded message from Celejar ----- =46rom: Celejar To: Debian Bug Tracking System Subject: Bug#499868: udev: multiple mac80211 interfaces created on the same physical device are incorrectly renamed Package: udev Version: 0.125-6 Severity: normal mac80211 drivers allow multiple interfaces to be created on the same physic= al device, so the underlying wmaster0 device can have eth0, eth1 and eth2. Wh= en the driver is first loaded, a udev rule like this is written: # PCI device 0x14e4:0x4318 (b43) SUBSYSTEM=3D=3D"net", ACTION=3D=3D"add", DRIVERS=3D=3D"?*", ATTR{address}= =3D=3D"xx:xx:xx:xx:xx:xx", ATTR{type}=3D=3D"1", KERNEL=3D=3D"wlan*", NAME= =3D"eth0" (originally 'NAME=3D"wlan0"', I changed it to eth0) When I subsequently add an interface with iw dev wmaster0 interface add eth1 type station a udev rule like this is added: # PCI device 0x14e4:0x4318 (b43) SUBSYSTEM=3D=3D"net", ACTION=3D=3D"add", DRIVERS=3D=3D"?*", ATTR{address}= =3D=3D"xx:xx:xx:xx:xx:xx", ATTR{type}=3D=3D"1", KERNEL=3D=3D"eth**", NAME= =3D"eth1" Then, if I add another interface with iw dev wmaster0 interface add eth2 type station it gets caught by the existing rule and I get the infamous 'eth2_rename' instead of 'eth2'. I have seen this behavior with both b43 and ath5k. Perhaps creating multip= le ethX interfaces is a corner case, but the documentation should at least warn about it. ----- End forwarded message ----- --=20 ciao, Marco --ew6BAiZeqk4r7MaW Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAknl5IMACgkQFGfw2OHuP7G8zgCeNsnFzmeRQGOIo2F/BdDEwk7p 5XoAnRI7fjlOu5wvIRqSH0Qn5eDhZkTD =lvDW -----END PGP SIGNATURE----- --ew6BAiZeqk4r7MaW--