Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Wireless Internet > Wifi connection keeps dropping - please help!

Forgot Password?
 Wireless Internet   Anything related to getting wireless set up in Linux. WLAN, WiFi, etc.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 05-03-2007   #1 (permalink)
Just Joined!
 
Join Date: Dec 2005
Posts: 5
Wifi connection keeps dropping - please help!

Hi everyone.
I'm running Ubuntu 7.04, and I have an Atheros based wi-fi card hence all
the ath0-ing going on below. My situation is that the wireless network I need to connect to requires me to use the second key index, which I can do, but then the connection keeps dying.

Here is how I've got it running on the command line:

ifconfig ath0 down
iwconfig ath0 essid <my network name>
iwconfig ath0 ap <my access point's mac address>
iwconfig ath0 key [2] <my WEP key>
iwconfig ath0 key [2]
iwconfig ath0 key open
iwconfig ath0 key on
ifconfig ath0 up
dhclient ath0
ping www.google.com (pings are returned)


The problem: the connection drops after about 10 seconds unless I keep it alive by pinging somewhere.

Have I done something wrong, or is it something to do with the access point? It's not a signal strength problem - iwconfig lists near perfect signal quality and I'm right next to the AP.

Thanks.
meglamaniac is offline  


Reply With Quote
Old 05-03-2007   #2 (permalink)
Super Moderator
 
Dapper Dan's Avatar
 
Join Date: Oct 2004
Location: The Sovereign State of South Carolina
Posts: 4,136
Send a message via AIM to Dapper Dan
Hi meglamaniac...

Hmmm. That's a shame. I have become a big believer in atheros for Linux because with the MadWifi driver they have been working so rock solid for me. I don't use hex so have never run into this... It is possible that another version of the driver might make the difference. I wish I knew how to help you better. Sorry.
__________________
CRUX 2.5 + IceWM Registered:#371367 New Members: click here
Dapper Dan is offline   Reply With Quote
Old 05-03-2007   #3 (permalink)
Just Joined!
 
Join Date: Dec 2005
Posts: 5
Well I've done some troubleshooting and I think I'm getting somewhere.

So long as I'm not in Gnome (GDM is loaded and running on tty7 but Gnome itself isn't) then the procedure I outlined above works fine - the connection never drops. This obviously isn't very useful though, because then I don't have access to Firefox or anything like that.

If I try it in Gnome, it always drops sooner or later even if I keep pinging.
I thought it might have something to do with networkmanager so I tried to find out how to stop it, but I couldn't find an "official" way and I'm not sure where in the boot process it's being loaded. It's not running as a service - "stop NetworkManager" doesn't work.

So in the end I just killed both the running processes for it which seemed to improve things slightly, but then it still dropped after a couple of minutes.


This is definately something to do with Gnome, I just don't know what...
meglamaniac is offline   Reply With Quote
Old 05-03-2007   #4 (permalink)
Linux Guru
 
budman7's Avatar
 
Join Date: Oct 2004
Location: Knee deep in Grand Rapids, Michigan
Posts: 3,242
I just used the commands that you gave with the exception that I skipped putting the mac address in and using the [2] before the key.
The connection seems to be fine to me.

I have an Atheros Communications, Inc. AR5005G 802.11abg NIC (rev 01) card.
__________________
Go RedWings
How to know if you are a geek.
when you respond to "get a life!" with "what's the URL?"
- Birger

New users read The FAQ
budman7 is offline   Reply With Quote
Old 05-03-2007   #5 (permalink)
Just Joined!
 
Join Date: Dec 2005
Posts: 5
Ok there is another network on this site which is unsecured. I just tried connecting to it manually but within Gnome, and it works and doesn't drop.

Then I tried connecting to the one I use again and it dropped.

I'm wondering if this has something to do with the fact that we don't broadcast our SSID.
Obviously whichever bit of gnome is interfering here should be able to deal with a network with a hidden SSID, but maybe it can't for some reason. Maybe this is a bug?

Oh I should probably have pointed out before that the same laptop and card works fine on this network under windows.
meglamaniac is offline   Reply With Quote
Old 05-16-2007   #6 (permalink)
Just Joined!
 
Join Date: May 2007
Posts: 3
Quote:
Originally Posted by meglamaniac View Post
Hi everyone.
I'm running Ubuntu 7.04, and I have an Atheros based wi-fi card hence all
the ath0-ing going on below. My situation is that the wireless network I need to connect to requires me to use the second key index, which I can do, but then the connection keeps dying.

Here is how I've got it running on the command line:

ifconfig ath0 down
iwconfig ath0 essid <my network name>
iwconfig ath0 ap <my access point's mac address>
iwconfig ath0 key [2] <my WEP key>
iwconfig ath0 key [2]
iwconfig ath0 key open
iwconfig ath0 key on
ifconfig ath0 up
dhclient ath0
ping Google (pings are returned)


The problem: the connection drops after about 10 seconds unless I keep it alive by pinging somewhere.

Have I done something wrong, or is it something to do with the access point? It's not a signal strength problem - iwconfig lists near perfect signal quality and I'm right next to the AP.

Thanks.
What Windows are you using? I know that before XP SP2 came out, the default wireless handling of XP was GARBAGE... it would constantly do the same thing that yours is doing. Although, have you tried powering down your router and powering it back up again?
thomking is offline   Reply With Quote
Old 06-27-2007   #7 (permalink)
Just Joined!
 
Join Date: May 2007
Posts: 3
needs reply!
so that I can think about rendering help!
thomking is offline   Reply With Quote
Old 07-18-2007   #8 (permalink)
Just Joined!
 
Join Date: May 2007
Posts: 3
oh man no response! why?
are you all sleeping?
thomking is offline   Reply With Quote
Old 07-19-2007   #9 (permalink)
Just Joined!
 
Join Date: Dec 2005
Posts: 5
Hi guys, sorry I must have missed the emails about the first two replies somehow.

Anyway, basically the problem was networkmanager - if I uninstalled the package in synamptic then everything started behaving. Sometime I'll get around to figuring out how to disable it on startup instead of uninstalling but this'll do for now.
meglamaniac is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 08:18 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2