View previous topic :: View next topic |
Author |
Message |
einheitlix Tux's lil' helper

Joined: 03 Aug 2004 Posts: 144 Location: Saarbrücken, Germany
|
Posted: Wed Aug 24, 2005 6:46 pm Post subject: Bug in /etc/init.d/net.eth0 ? |
|
|
Hi,
I recently had problems getting my wlan card to work after a system update (it used to work before that).
I'm using the ndiswrapper to get the card to work. Now, when I tried to start /etc/init.d/net.wlan0 (which is a link to /etc/init.d/net.eth0), the following happened:
Quote: |
shifty ~ # /etc/init.d/net.wlan0 start
* Starting wlan0
* Configuring wireless network for wlan0
* Couldn't associate with any access points on wlan0
* Failed to configure wireless for wlan0
|
The output of ifconfig was:
Quote: |
shifty ~ # ifconfig
lo Protokoll:Lokale Schleife
inet Adresse:127.0.0.1 Maske:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:0
RX bytes:400 (400.0 b) TX bytes:400 (400.0 b)
|
i.e., the wlan0 device was down. So the routing table had only one entry:
Quote: |
shifty ~ # route -n
Kernel IP Routentabelle
Ziel Router Genmask Flags Metric Ref Use Iface
127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 lo
|
Even if I loaded the wlan0 device with ifconfig wlan0 up, the routing table wouldn't change and it still wouldn't work.
This, albeit the fact that the card was recognized by the kernel and even actually got a signal from the access point, as you can see:
Quote: |
shifty ~ # lspci | grep -i network
0000:02:0d.0 Network controller: RaLink Ralink RT2500 802.11 Cardbus Reference Card (rev 01)
shifty ~ # ndiswrapper -l
Installed ndis drivers:
rt2500 driver present, hardware present
shifty ~ # iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
Warning: Driver for device wlan0 recommend version 18 of Wireless Extension,
but has been compiled with version 17, therefore some driver features
may not be available...
wlan0 IEEE 802.11g ESSID:"default"
Mode:Managed Frequency:2.437 GHz Access Point: 00:04:0E:76:CF:D8
Bit Rate:24 Mb/s Tx-Power:20 dBm Sensitivity=-120 dBm
RTS thr:2347 B Fragment thr:2346 B
Encryption key:1234-1234-12 Security mode:open
Power Management:off
Link Quality:90/100 Signal level:-68 dBm Noise level:-256 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:330 Invalid misc:200 Missed beacon:0
|
I searched the internet and found a few people having the same problem (all under Gentoo), but nobody had solved it (or, at least, noone had written anything about a solution).
In short, it looks like everything's right, but the network isn't set up correctly anyways.
The only weird thing I noticed is the following:
Quote: |
shifty ~ # dmesg | grep ndis
ndiswrapper version 1.2 loaded (preempt=yes,smp=no)
ndiswrapper: driver rt2500 (Ralink Technology, Inc.,06/10/2004, 2.02.06.0000) loaded
ndiswrapper: using irq 10
wlan0: ndiswrapper ethernet device 00:0e:2e:38:f7:36 using driver rt2500, configuration file 1814:0201:1814:2560.5.conf
ndiswrapper (iw_set_tx_power:421): setting tx_power failed (C0010015)
ndiswrapper (set_infra_mode:189): setting operating mode failed (C0010015)
ndiswrapper (iw_set_tx_power:421): setting tx_power failed (C0010015)
|
The "setting tx_power failed" and "setting operating mode failed" didn't occur before.
I tried many different things (like recompile the module, reload the drivers, even different kernel versions etc.), but what finally led me to success was to replace my new after-the-system-update /etc/init.d/net.eth0 with an old one (from another Gentoo machine here).
With the old init script, my wlan card works flawlessly and there are no warnings in dmesg.
So what's up? Is this a bug in the new init script or did I just workaround the actual problem? Anyone has any idea? Should I file a bug report?
For reference, here are the two init scripts, the old one (which works) and the current one (which doesn't work):
http://hetzner.scummunity.de/~malte/gentoo/net.eth0.old
http://hetzner.scummunity.de/~malte/gentoo/net.eth0.new
I'd be grateful for any help. While it works now, I wouldn't like to keep the "old" init script for all eterniy.  _________________ Collecting data is only the first step toward wisdom. But sharing data is the first step toward community. |
|
Back to top |
|
 |
WetSpot n00b


Joined: 05 May 2005 Posts: 29 Location: Middle Tennessee, USA
|
Posted: Fri Aug 26, 2005 8:34 pm Post subject: |
|
|
Have you recently also updated your baselayout?
In general terms, I had a similar problem with my NICs after a kernel and baselayout update. I had to fall back to older (pre-baselayout changes) to get the network back, until I realized what the changes were.
Search the forum for posts by uberlord. It seems he was a principal in the baselayout changes and his posts were very helpful in learning about what changed and how to make the required changes. _________________ "Consensus is the Negation of Leadership"
--M. Thatcher |
|
Back to top |
|
 |
UberLord Retired Dev


Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
 |
|
|
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
|
|