Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.


  Search this Thread
Old 05-16-2004, 04:58 AM   #1
LQ Newbie
Registered: May 2004
Distribution: Fedora Core RC1
Posts: 5

Rep: Reputation: 0
connection lost through wireless after a few seconds...

Hi all,

After some time spent to setup my wireless connection on my laptop, I'm now at a point where I can get a working connection for a few seconds after the success of the DHCP request. Then the connection is dropped after something like 10 seconds. If I "ifup" again my interface, I can get some extra seconds again... not really convenient isn't it?

That's for the context, now some more details :
I'm running a Fedora Core 1 on a 650MHz laptop, there are two pcmcia slots full of network cards:
-a ethernet card using the 8139too module (eth0)
-a wireless TrendNet TEW-221PC (eth1) using module ADM 8211
Both are connected to my Wireless router, one with a wire, the other one without.
I use either one or the other, but not both at the same time, that means I only have the loopback and an eth card in my ifconfig output.
so it's either
ifdown eth0 ; ifup eth1
either ifdown eth1; ifup eth0
Of course the option number one is the want I'd like to use at some point...

Both get their configuration from the wireless router via DHCP,
eth0 gets usually
eth1 gets usually

Then it's functional, I can ping, surf, mail, etc... as long as I want through eth0, but only for a few seconds through my eth1
Then I loose the connection, or maybe just the DNS? I thought there could have been a kind of power off on the eth1 if not active for ten seconds (that would be stupid however...) but even if I keep it alive with a ping to the outside world, it stops after a while.

That's where I stopped my investigations, and need some help about this dodgy behaviour.

Any idea welcome

alex - NZ
Old 05-22-2004, 02:17 AM   #2
LQ Newbie
Registered: May 2004
Distribution: Fedora Core RC1
Posts: 5

Original Poster
Rep: Reputation: 0
Hmmm thanks for All your input...

OK, I'm a newbie here, first post in this place, but I could always find the required informations here without posting, except this time where it seems I have a special problem.

I'll try to give more details to sting your curiosity.

Here is the output of a ping when I loose my connection
64 bytes from ( icmp_seq=35 ttl=45 time=371 ms
64 bytes from ( icmp_seq=36 ttl=45 time=369 ms
From icmp_seq=88 Destination Host Unreachable
From icmp_seq=89 Destination Host Unreachable
The network connection is dropped, and I can not ping the router itself
So it's not a priori a DNS or routing issue it's just the link from my card to the router that is dropped.

Any idea about a direction to investigate ?

-card driver ?
The module is reported as tainted... don't know if it can affect me...
Maybe I should try a different card...

-update to a brand new kernel ?
Not really keen to do this now and I can mess up my system without a guarantee of any better result.

-change the parameters of my access point ? disable WEP, ...
But it seems to work fine like this (at least for a while...)

Is there a log file somewhere that could tell me a bit more about this ?
/var/log/messages just tells me my dhcp request succeeded...

May 22 18:01:52 localhost kernel: set channel 6
May 22 18:01:56 localhost dhclient: DHCPREQUEST on eth1 to port 67
May 22 18:01:56 localhost dhclient: DHCPACK from
May 22 18:01:56 localhost dhclient: bound to -- renewal in 33510 seconds.

I'd really appreciate any kind of help !

Old 05-23-2004, 07:45 AM   #3
LQ Newbie
Registered: May 2004
Distribution: Fedora Core RC1
Posts: 5

Original Poster
Rep: Reputation: 0
Let's get into the code....

After activation of the debug traces in the driver, I see that when the things are going wrong I receive a "TSFT out of range interrupt happen" in my /var/log/message
So there's something in the BIT_26 of my csr5... gasp ???

Here is the code of the interrupt handler...

/* The interrupt handler does all of the Rx thread work and cleans up
after the Tx thread. */
static void adm8201_interrupt(int irq, void *dev_instance,
struct pt_regs *regs)
struct net_device *dev = (struct net_device *) dev_instance;
struct adm8201_private *pDevice = (struct adm8201_private *) dev->priv;
long ioaddr = dev->base_addr;
int work_budget = max_interrupt_work;
DWORD csr5;
csr5 = inl(ioaddr + CSR5);

if ((csr5 & (NormalIntr | AbnormalIntr)) == 0)

outl(csr5 & 0xffffffff, ioaddr + CSR5);

if( csr5 & BIT_30 )

if (csr5 & BIT_26 )
#ifdef lm_debug
printk("TSFT out of range interrupt happen \n");


Then the code passes in the following part and displays a "RxNoBuf"

if (csr5 & (RxStopped | RxNoBuf))
#ifdef lm_debug
printk("Abnormal csr5 & (RxStopped | RxNoBuf)\n");

/* Missed a Rx frame or mode change. */
pDevice->stats.rx_missed_errors += inl(ioaddr + CSR8) & 0xffff;

if (csr5 & RxNoBuf)
pDevice->rx_dead = 1;
outl(pDevice->csr6 | RxOn | TxOn, ioaddr + CSR6);

I tried to tweak a bit when the Out of Range is detected, tried to dismiss the Rx Frame, etc... but nothing really better. Maybe I won a few extra seconds of connection but still disconnecting after a while.
I tried as well with the adm8211 version 1.05 (I was using the 1.03 provided by Trendnet) but same issue.

I've also discovered that I'm not alone in this cruel world of ADM 8211 drivers with a discussion quite related.

But the conclusion of this thread is not really hopeful. And of course I could restart my eth1 connection every 30 sec if the network is down, but I'm not sure about the performance...

I'm afraid to have to buy a 10m+ 802.3 cable ... or change the card for one other.
Still happy to receive any help/idea !

See ya
Old 05-25-2004, 02:46 AM   #4
LQ Newbie
Registered: May 2004
Distribution: Fedora Core RC1
Posts: 5

Original Poster
Rep: Reputation: 0
OK... I'll close this thread that I have started and populated alone... maybe this could be helpful for someone at some point
I gave up with the ADMtek driver, seems to be not deeply compatible with Fedora Core 1 (even when built from sources...)

I use the alternative way with NdisWrapper for the 8211 driver, and it works fine.
Old 05-25-2004, 02:25 PM   #5
Registered: Nov 2003
Location: Pennsylvania
Distribution: Mandrake 9.1
Posts: 49

Rep: Reputation: 15
Fully open source adm8211 driver "in testing " on TrendNet 221pc cardbus

TrendNet 221pc cardbus with Michael Wu's new driver ADM8211-20040522 with Mandrake 10.0 with Cooker Kernel 2.6.6-0.rc3.1mdk-i686-up-4GB on Dell Inspiron 1100 laptop, A29 bios.

see it at--

Download - ark - terminal in adm8211 dir- su to root-make

Install kernel module adm8211.ko in /lib/modules/2.6.6-0.rc3.1mdk-i686-up-4GB/kernel/drivers/net/wireless/


add alias ethX adm8211 to /etc/modules.conf

configure /etc/sysconfig/network-scripts/ifcfg-ethX =


run from terminal as root:

route add default gw XXX.XXX.XXX.XXX ethX

ifconfig ethX XXX.XXX.XXX.XXX netmask

dhclient ethX

No WEP, but full open source driver for AdmTek adm8211 chip

I sometimes lose the link when mozilla is starting, but repeating the ifconfig and dhclient restart the connection.

If being fully open source is important, this is the Admtek 8211 driver for you.
Old 05-25-2004, 03:39 PM   #6
LQ Newbie
Registered: May 2004
Distribution: Fedora Core RC1
Posts: 5

Original Poster
Rep: Reputation: 0
Sure, Open Source is important!

I had a look at this driver as well, but it looks more like a driver for the 2.6 kernel, but on my Fedora Distro, I'm with a 2.4.22, and it wasn't straightforward to build this driver. (and I'm running out of space to have multiple kernel trees and backups...)

But for sure, when I'll upgrade my Linux box I'll give it a try.
I think I spent already too much time on this driver thing, and even if it was instructive, I'll have a break for a while, and enjoy my mobile connection with the hacky ndiswrapper.

Thanks for the info


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
convert total no of seconds in the format hour minutes and seconds suchi_s Programming 15 03-15-2011 12:34 PM
wireless connection ok with knoppix dvd , no connection with installed fedora 4 docharmony Linux - Wireless Networking 2 11-27-2005 05:33 PM
lost wireless connection after i updated suse! mcalvink Linux - Wireless Networking 3 08-22-2004 04:59 AM
lost wireless connection donavan01 Linux - Laptop and Netbook 0 07-09-2004 03:41 PM
lost connection loganwva Linux - Networking 1 04-03-2002 12:44 AM > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 05:56 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration