LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices

Reply
 
Search this Thread
Old 05-16-2004, 03:58 AM   #1
nzalex
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 192.168.1.102
eth1 gets usually 192.168.1.103

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, 01:17 AM   #2
nzalex
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 virtual.namebay.com (80.247.64.138): icmp_seq=35 ttl=45 time=371 ms
64 bytes from virtual.namebay.com (80.247.64.138): icmp_seq=36 ttl=45 time=369 ms
From 192.168.1.103 icmp_seq=88 Destination Host Unreachable
From 192.168.1.103 icmp_seq=89 Destination Host Unreachable
...
The network connection is dropped, and I can not ping the router itself 192.168.1.1
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 255.255.255.255 port 67
May 22 18:01:56 localhost dhclient: DHCPACK from 192.168.1.1
May 22 18:01:56 localhost dhclient: bound to 192.168.1.103 -- renewal in 33510 seconds.

I'd really appreciate any kind of help !

Thanks
alex.
 
Old 05-23-2004, 06:45 AM   #3
nzalex
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;
//DisableInterrupt(dev);
do
{
csr5 = inl(ioaddr + CSR5);

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

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

if( csr5 & BIT_30 )
{
pDevice->LM_Device.BeaconCount++;
}

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

....

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");
#endif

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

adm8201_rx_interrupt(dev);
if (csr5 & RxNoBuf)
{
printk("RxNoBuf\n");
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.
http://www.linuxquestions.org/questi...threadid=92192

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
alex.
 
Old 05-25-2004, 01:46 AM   #4
nzalex
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, 01:25 PM   #5
lightsail
Member
 
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--
http://aluminum.sourmilk.net/adm8211/


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/

depmod

add alias ethX adm8211 to /etc/modules.conf

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

DEVICE=eth0
WIRELESS=yes
BOOTPROTO=dhcp
IPADDR=XXX.XXX.XXX.XXX
NETMASK=255.255.255.0
NETWORK=XXX.XXX.XXX.XXX
BROADCAST=XXX.XXX.XXX.XXX
onBOOT=yes
MII_NOT_SUPPORTED=no
NEEDHOSTNAME=yes

run from terminal as root:

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

ifconfig ethX XXX.XXX.XXX.XXX netmask 255.255.255.0

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, 02:39 PM   #6
nzalex
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
 
  


Reply


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 11:34 AM
wireless connection ok with knoppix dvd , no connection with installed fedora 4 docharmony Linux - Wireless Networking 2 11-27-2005 04:33 PM
lost wireless connection after i updated suse! mcalvink Linux - Wireless Networking 3 08-22-2004 03:59 AM
lost wireless connection donavan01 Linux - Laptop and Netbook 0 07-09-2004 02:41 PM
lost connection loganwva Linux - Networking 1 04-02-2002 11:44 PM


All times are GMT -5. The time now is 04:53 AM.

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