[Bug 214962] New: buggy udev persistent records created after calling of hostapd
https://bugzilla.novell.com/show_bug.cgi?id=214962 Summary: buggy udev persistent records created after calling of hostapd Product: SUSE Linux 10.1 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: sbrabec@novell.com QAContact: qa@suse.de Problem: After single starting of hostapd from hostap package, hostap network device is permanently renamed (i. e. name change persists after reboot) from wlan0 to wlan0ap. /etc/udev/rules.d/30-net_persistent_names.rules is updated and contains: # This rules are autogenerated from /lib/udev/rename_netiface. # But you can modify them, but make sure that you don't use an interface name # twice. Also add such interface name rules only in this rules file. Otherwise # rename_netiface will create wrong rules for new interfaces. # It is safe to delete a rule, as long as you did not disable automatic rule # generation. Only if all interfaces get a rule the renaming will work # flawlessly. See also /etc/udev/rules.d/31-net_create_names.rules. # # Read /usr/share/doc/packages/sysconfig/README.Persistent_Interface_Names for # further information. # # Use only a-z, A-Z and 0-9 for interface names! # SUBSYSTEM=="net", ACTION=="add", SYSFS{address}=="00:50:fc:33:ce:ba", IMPORT="/lib/udev/rename_netiface %k eth0" SUBSYSTEM=="net", ACTION=="add", SYSFS{address}=="00:60:b3:6b:d3:c5", IMPORT="/lib/udev/rename_netiface %k wlan0" SUBSYSTEM=="net", ACTION=="add", SYSFS{address}=="00:60:b3:6b:d3:c5", IMPORT="/lib/udev/rename_netiface %k wlan0ap" SUBSYSTEM=="net", ACTION=="add", SYSFS{address}=="00:60:b3:6b:d3:c5", IMPORT="/lib/udev/rename_netiface %k wlan0apap" -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=214962 mhorvath@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |jg@novell.com |screening@forge.provo.novell| |.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=214962 ------- Comment #1 from mhorvath@novell.com 2006-10-26 07:07 MST ------- Could you also attach hostapd logs, please? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=214962 mhorvath@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |sbrabec@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=214962 sbrabec@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jbenc@novell.com ------- Comment #2 from sbrabec@novell.com 2006-10-26 08:33 MST ------- I can do it later. But as I wrote, it was started once and never more. There is a different problem: hostapd (correctly) created wlan0ap in addition to wlan0 (and later maybe incorrectly created wlan0apap in addition to wlan0ap). But both these devices have the same MAC and the persistent device naming scripts did a bad thing. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=214962 jg@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|jg@novell.com |zoz@novell.com Status|NEEDINFO |NEW Info Provider|sbrabec@novell.com | ------- Comment #3 from jg@novell.com 2006-10-26 08:49 MST ------- Yes, rename_netiface should not write multiple entries for the same MAC address. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=214962
------- Comment #4 from sbrabec@novell.com 2006-10-26 11:26 MST -------
Here is a part of hostapd log (actually, I probably called hostapd in past
twice):
Oct 10 22:32:39 utx kernel: wifi0: enabling hostapd mode
Oct 10 22:32:39 utx kernel: wifi0: registered netdevice wlan0ap
Oct 10 22:32:39 utx rename_netiface: cannot rename interface to temporary name
wlanxx
Oct 10 22:32:41 utx ifup: wlan0ap device: Intersil Corporation Prism 2.5
Wavelan chipset (rev 01)
Oct 10 22:32:41 utx ifup: wlan0ap configuration:
wlan-id-00:60:b3:6b:d3:c5
Oct 10 22:32:41 utx ifup-wireless: wlan0ap warning: using NO encryption
Oct 10 22:32:41 utx kernel: prism2: wlan0ap: operating mode changed 3 -> 2
Oct 10 22:32:41 utx kernel: wifi0: LinkStatus=2 (Disconnected)
Oct 10 22:32:41 utx kernel: wifi0: LinkStatus: BSSID=00:60:b3:6b:d3:c5
Oct 10 22:32:41 utx kernel: wifi0: LinkStatus=2 (Disconnected)
Oct 10 22:32:41 utx kernel: wifi0: LinkStatus: BSSID=44:44:44:44:44:44
Oct 10 22:32:41 utx kernel: wifi0: LinkStatus=2 (Disconnected)
Oct 10 22:32:41 utx kernel: wifi0: LinkStatus: BSSID=44:44:44:44:44:44
Oct 10 22:32:42 utx ifup-dhcp: Starting DHCP Client Daemon on wlan0ap...
Oct 10 22:32:42 utx dhcpcd[11712]: dhcpStart: interface wlan0ap is not Ethernet
or 802.2 Token Ring
Oct 10 22:32:42 utx ifup-dhcp: .
Oct 10 22:32:42 utx kernel: wifi0: LinkStatus=1 (Connected)
Oct 10 22:32:42 utx kernel: wifi0: LinkStatus: BSSID=00:80:48:3e:0c:8b
Oct 10 22:32:42 utx kernel: ADDRCONF(NETDEV_CHANGE): wifi0: link becomes ready
Oct 10 22:32:43 utx ifup-dhcp: .
Oct 10 22:32:44 utx ifup-dhcp: .
Oct 10 22:32:45 utx ifup-dhcp: .
Oct 10 22:32:46 utx ifup-dhcp: .
Oct 10 22:32:47 utx ifup-dhcp: no IP address yet... backgrounding.
Oct 10 22:33:08 utx modify_resolvconf: Service dhcpcd modified
/etc/resolv.conf. See info block in this file
Oct 10 22:34:02 utx kernel: prism2: wlan0: operating mode changed 2 -> 3
Oct 10 22:34:54 utx ifdown: wlan0 device: Intersil Corporation Prism
2.5 Wavelan chipset (rev 01)
Oct 10 22:34:54 utx ifdown: wlan0 configuration:
wlan-id-00:60:b3:6b:d3:c5
Oct 10 22:34:54 utx dhcpcd[11112]: terminating on signal 15
Oct 10 22:34:54 utx modify_resolvconf: restored
/etc/resolv.conf.saved.by.dhcpcd.wlan0 to /etc/resolv.conf
Oct 10 22:34:55 utx ifstatus: lo
Oct 10 22:34:55 utx ifstatus: lo is up
Oct 10 22:34:55 utx ifstatus: 1: lo:
https://bugzilla.novell.com/show_bug.cgi?id=214962 zoz@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jg@novell.com Status|NEW |NEEDINFO Info Provider| |sbrabec@novell.com ------- Comment #5 from zoz@novell.com 2006-11-20 05:54 MST ------- Please try this patch for /lib/udev/rename_netiface: --- scripts/rename_netiface (Revision 1524) +++ scripts/rename_netiface (Arbeitskopie) @@ -95,6 +95,11 @@ ls /sys/class/net/$OLDNAME 2>/dev/null 1>&2 \ || error_exit 3 "oldname $OLDNAME does not exist" NAMEBASE=${OLDNAME%%[0-9]*} +case "$OLDNAME" in + wlan[0-9]ap*) + exit 0 + ;; +esac case "$NAMEBASE" in eth|ath|wlan|ra|hsi|ctc|tr) : go on -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=214962 sbrabec@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|sbrabec@novell.com | ------- Comment #6 from sbrabec@novell.com 2006-12-12 01:34 MST ------- Sorry, I have now hardware problems with PCI, so I cannot verify it. I am not sure, whether it is correct. It should prevent renaming of wlan0 to wlan0ap. hostapd creates wlan0ap with the same MAC, but a different function, in addition to wlan0. The code should prevent renaming of wlan0 to wlan0ap on reboot (and later renaming of wlan0ap to wlan0apap). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=214962 ------- Comment #7 from zoz@novell.com 2006-12-12 06:50 MST ------- The patch excludes interfaces named wlan[0-9]ap* in rename_netiface. I.e. no rule creation and no renaming for wlan[0-9]ap*. Tested it myself and it seems to work. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=214962 zoz@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED ------- Comment #8 from zoz@novell.com 2006-12-12 06:56 MST ------- Fixed in svn. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=214962 behlert@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com