Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
udev and wlan0ap_rename
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
NTT
Apprentice
Apprentice


Joined: 26 Dec 2002
Posts: 188

PostPosted: Sat Feb 10, 2007 4:54 pm    Post subject: udev and wlan0ap_rename Reply with quote

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
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sun Feb 11, 2007 7:09 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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