Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
init script can't detect my wlan0 is wireless
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
paluszak
Apprentice
Apprentice


Joined: 28 Jun 2004
Posts: 274
Location: Warsaw, Poland

PostPosted: Sun Sep 02, 2007 3:23 pm    Post subject: init script can't detect my wlan0 is wireless Reply with quote

Hi,

I've got a problem like this, my /etc/conf.d/net is set more or less properly:

Code:

...
essid_wlan0="xxxxxx"
mode_wlan0="Managed"
config_wlan0=("192.168.1.201/24")
routes_wlan0=("default via 192.168.1.103")
dns_servers_wlan0=("194.204.159.1" "217.98.63.164")
...


UDEV starts /etc/init.d/net.wlan0 automatically, but it fails to connect to access point (verbose output):

Code:

 * Starting wlan0
 *   Loading networking modules for wlan0
 *     modules: apipa arping ccwgroup macchanger macnet rename iwconfig essidnet iptunnel ifconfig system dhcpcd ip6to4
 *       iwconfig provides wireless
 *       ifconfig provides interface
 *       dhcpcd provides dhcp
 *   Configuring wlan0 for MAC address 00:40:F4:9D:A2:DB ...              [ ok ]
 *   Wireless extensions not found for wlan0
 *   Bringing up wlan0
 *     192.168.1.201/24                                                   [ ok ]
 *   Adding routes
 *     default via 192.168.1.103 ...                                      [ ok ]


Of course, there's no link established between my adapter and access point. I think the problem is that the init scripts don't recognize that wlan0 interface is a wireless device. With iwconfig output like this:

Code:

...
wlan0     IEEE 802.11b  Mode:Managed  Frequency:2.472 GHz 
          Access Point: Not-Associated   Bit Rate:11 Mb/s   Sensitivity=80/85 
          Retry:on   Fragment thr:off
          Encryption key:off
...


I fugured out that setting access point name manually should work, and after typing

Code:

iwconfig wlan0 essid xxxxxx


the link LED on my wireless device lit up and everything started to work fine. I use gentoo kernel 2.6.21-r4 with rtl8180 PCMCIA wireless device. I wonder if somebody knows what to do? I think that, as everything works fine if I issue the commands manually, it's some kind of problem with automated scripts.

Oh, and I use wireless-tools-29_pre22, but the same problem was with previous versions.

J.
Back to top
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Mon Sep 03, 2007 3:20 am    Post subject: Reply with quote

It shouldn't matter, but try adding the iwconfig line:

Code:

modules=( "iwconfig" )
essid_wlan0="xxxxxx"
mode_wlan0="Managed"
config_wlan0=( "192.168.1.201/24" )
routes_wlan0=( "default via 192.168.1.103" )
dns_servers_wlan0=( "194.204.159.1" "217.98.63.164" )


I'm pretty sure that won't work, but what the hell.
_________________
Thomas S. Howard
Back to top
View user's profile Send private message
paluszak
Apprentice
Apprentice


Joined: 28 Jun 2004
Posts: 274
Location: Warsaw, Poland

PostPosted: Mon Sep 03, 2007 5:30 am    Post subject: Reply with quote

didymos wrote:
It shouldn't matter, but try adding the iwconfig line:

Code:

modules=( "iwconfig" )
essid_wlan0="xxxxxx"
mode_wlan0="Managed"
config_wlan0=( "192.168.1.201/24" )
routes_wlan0=( "default via 192.168.1.103" )
dns_servers_wlan0=( "194.204.159.1" "217.98.63.164" )


I'm pretty sure that won't work, but what the hell.


Unfortunately, it doesn't change much.
Back to top
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Mon Sep 03, 2007 5:40 am    Post subject: Reply with quote

Umm, alright, I just noticed that it's udev starting the service. So, edit /etc/conf.d/rc and make this change:

Code:

RC_PLUG_SERVICES="!net.wlan0"


then do:

Code:

rc-update -a net.wlan0 default


It could be udev is starting the device too early, which is why it works by the time you login and set things manually.
_________________
Thomas S. Howard
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