View previous topic :: View next topic |
Author |
Message |
NTT Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Sonic/5.gif)
Joined: 26 Dec 2002 Posts: 188
|
Posted: Sat Feb 10, 2007 4:54 pm Post subject: udev and wlan0ap_rename |
|
|
I was in the process of setting up a hostapd wlan access point using a prism card using the hostap driver. When trying to start up hostapd I get an error;
Code: | ioctl(SIOCGIFINDEX): No such device |
When I type iwconfig I notice there is a device called wlan0ap_rename - this should be just wlan0ap.
After Googling a bit I found out it was udev renaming my device - so I tried one of the possible solutions I found.
I created the file /etc/udev/rules.d/12-wifi-rules containing the line
Code: | KERNEL="wlan0ap*", SYSFS{address}="00:0d:54:aa:d0:28", NAME="wlan0ap" |
in an attempt to get the deivce name back to what it should be. Its not working.
Can anybody help me with this udev problem, or better yet, a rule to tell udev not to touch this device/driver at all?
Ps. after a reboot, it will work at first, but when I try to experiment something or restart hostapd it seems to get renamed. Also unloading the module makes udev crash my PC. I built the module for the kernel yesterday, ad dit not reboot after it - insmodded/rmmodded it quite a lot without problems. Today, after rebooting, a rmmod hostap_pci makes my computer lock up. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
PaulBredbury Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/15669254994381f44a81f83.jpg)
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Sun Feb 11, 2007 7:09 am Post subject: |
|
|
Should be e.g.:
Code: | SUBSYSTEM=="net", SYSFS{address}=="00:0d:54:aa:d0:28", NAME="wlan0ap" |
man udev for difference between = and ==. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|