Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
wireless problem
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
eigenman
n00b
n00b


Joined: 13 Jul 2005
Posts: 58
Location: California

PostPosted: Thu Apr 13, 2006 7:42 pm    Post subject: wireless problem Reply with quote

Hi,

I have an atheros based wireless ethernet on my home computer, and I'm having a bit of problem with it. I've set up the system to use static IP, with a fixed router, as using the following commands:

modprobe ath_pci
wlanconfig ath0 create wlandev wifi0 wlanmode sta
iwconfig ath0 essid MusicHouse rate 2M
ifconfig ath0 up 192.168.1.50
route add default gw 192.168.1.1

So far so good, and when I run this the internet works out fine. The problem is that after a while, I just lose the internet connection, and I can't figure out why. I can lose the connection faster if I run "iwscan list" few times.
Before, I used to stop the internet service, and restart it to make things work, but I just learned that running that command "iwconfig ath0 essid MusicHouse" brings back the internet. I am at complete loss on what I can do to fix this.

Cheers,
Eigenman

PS I used to have it set up to use dhcp, but that was much more flakey. This way, the problem seems to be a bit more isolated.
Back to top
View user's profile Send private message
nadi
Apprentice
Apprentice


Joined: 06 Aug 2004
Posts: 280
Location: Norway

PostPosted: Thu Apr 13, 2006 7:55 pm    Post subject: Reply with quote

hei
You are not alone. I have also an atheros wireless card in my laptop and connection is broken from time to time. It is not consistent: sometimes it can take hours and soetimes just minutes. I am bringing back the network with an /etc/conf.d/local.start script I have made. More than that: I cannot initiate my wireless connection with /etc/init.d/net.ath0 restart when using kernel 2.6.15-r1 or similar. However, when rebooting with kernel 2.6.12, the connection is up at boot. I wonder if the problem is with a bug in the madwifi-driver.

Nadi
Back to top
View user's profile Send private message
eigenman
n00b
n00b


Joined: 13 Jul 2005
Posts: 58
Location: California

PostPosted: Thu Apr 13, 2006 8:06 pm    Post subject: Reply with quote

Does this problem exist only on atheros chipsets? A quick search on the madwifi mailing list didn't show me anything interesting. For the record, this is what my iwconfig -v shows:
iwconfig Wireless-Tools version 28
Compatible with Wireless Extension v11 to v20.

Kernel Currently compiled with Wireless Extension v19.

ath0 Recommend Wireless Extension v13 or later,
Currently compiled with Wireless Extension v19.

I'm not sure if it is useful or not, but just in case.

Eigenman
Back to top
View user's profile Send private message
Daniel Tourde - Caelae.se
Tux's lil' helper
Tux's lil' helper


Joined: 26 Mar 2006
Posts: 138
Location: Stockholm

PostPosted: Sat Apr 15, 2006 3:49 pm    Post subject: Reply with quote

Same problems here:

gcc 4.1, glibc 2.4, kernel 2.6.16-r2, x86
madwifi: 0.1502-20060414
wpa_supplicant 0.5.2
=> Does not connect on my router at boot

gcc 3.4.5, glibc 2.3.5, kernel 2.6.15-r4, amd64
madwifi: 0.1502-20060414
wpa_supplicant 0.5.2
=> connect to the router at boot.

Strange to say the least...

Daniel
Back to top
View user's profile Send private message
rjrooke
n00b
n00b


Joined: 29 Mar 2004
Posts: 17

PostPosted: Sat Apr 15, 2006 4:08 pm    Post subject: wpa_supplicant problem? Reply with quote

wpa_supplicant has started crashing (??not running when I lose connection) - I believe since upgrade to 5.2 - running atheros chips and amd64 here...
Back to top
View user's profile Send private message
Monkeh
Veteran
Veteran


Joined: 06 Aug 2005
Posts: 1656
Location: England

PostPosted: Sat Apr 15, 2006 5:27 pm    Post subject: Reply with quote

I have similiar issues, except the Atheros part in my case is my AP.
Back to top
View user's profile Send private message
jarealist
Apprentice
Apprentice


Joined: 07 Oct 2002
Posts: 228

PostPosted: Sun Apr 16, 2006 12:03 am    Post subject: Reply with quote

I'm experiencing the same problem and I wonder if this could be the problem. Though i don't
know how to fix it.

When I run "iwlist ath0 scan" I'm getting two (2) cells listed with my router address. The
first one without an ESSID and the second one with the correct ESSID.

iwlist ath0 scan
ath0 Scan completed :
Cell 01 - Address: 00:09:5B:AD:83:E0
ESSID:""
Mode:Master
Frequency:2.412 GHz (Channel 1)
Quality=52/94 Signal level=-43 dBm Noise level=-95 dBm
Encryption key:on
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
48 Mb/s; 54 Mb/s
Extra:bcn_int=100
Cell 02 - Address: 00:09:5B:AD:83:E0
ESSID:"***********"
Mode:Master
Frequency:2.412 GHz (Channel 1)
Quality=55/94 Signal level=-40 dBm Noise level=-95 dBm
Encryption key:on
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
48 Mb/s; 54 Mb/s
Extra:bcn_int=100


Edit #1-

SOLVED: This was caused by my Netgear router Authentication Type setting. It was on "Open System". Changinging it to "Automatic" got rid of
the duplicate cell without the ESSID.
Back to top
View user's profile Send private message
Daniel Tourde - Caelae.se
Tux's lil' helper
Tux's lil' helper


Joined: 26 Mar 2006
Posts: 138
Location: Stockholm

PostPosted: Sun Apr 16, 2006 10:04 am    Post subject: Reply with quote

In my case it was a problem with bash. Shortly:
bash-3.1 -> troubles
bash-3.0 -> fine...

Daniel
Back to top
View user's profile Send private message
uxbod
Guru
Guru


Joined: 30 Dec 2002
Posts: 474
Location: UK

PostPosted: Sun Apr 16, 2006 5:51 pm    Post subject: Reply with quote

similar problems under x86_64 https://forums.gentoo.org/viewtopic-t-454296.html?sid=86283a867b040c626664cb6c72065e9a
Back to top
View user's profile Send private message
eigenman
n00b
n00b


Joined: 13 Jul 2005
Posts: 58
Location: California

PostPosted: Mon Apr 17, 2006 12:01 am    Post subject: Reply with quote

Well, at least this problem is not isolated to my computer. :?
Should I make a bug report to someone about this?
Does anyone have a workaround for this problem? I was thinking of having a crontab that resets the network connection every minute, but that seems like a terrible idea. Is there an easy way of figuring out if my connection is working in the script, so if it is not, it will reset the connection?

Cheers,
Eigenman
Back to top
View user's profile Send private message
Elv13
Guru
Guru


Joined: 13 Nov 2005
Posts: 388
Location: Socialist land of North America

PostPosted: Thu Apr 20, 2006 9:45 pm    Post subject: Reply with quote

almost same here, atheros chips, netgear router

wireless work fine, but i am not able et set essid, it always conect to the worst avalible...
tried iwconfig ath0 essid "" and mac adress but it still conecting on some linksys or d-link instead of my spot
Back to top
View user's profile Send private message
langthang
Retired Dev
Retired Dev


Joined: 27 Nov 2003
Posts: 620

PostPosted: Thu Apr 20, 2006 10:00 pm    Post subject: Reply with quote

eigenman wrote:
I was thinking of having a crontab that resets the network connection every minute, but that seems like a terrible idea.
Eigenman

why not just just gentoo network scripts? I don't know about the stable baselayout but the unstable one (1.12.0_pre17*) WFM (netgear W311T with D-link 624 router using wpa_supplicant-0.5.2.) And yes, the card reconnect to the router a lot. Some time within minute.
_________________
Gentoo users' map
Back to top
View user's profile Send private message
eigenman
n00b
n00b


Joined: 13 Jul 2005
Posts: 58
Location: California

PostPosted: Sat Apr 22, 2006 2:34 am    Post subject: Reply with quote

Quote:
why not just just gentoo network scripts? I don't know about the stable baselayout but the unstable one (1.12.0_pre17*) WFM (netgear W311T with D-link 624 router using wpa_supplicant-0.5.2.) And yes, the card reconnect to the router a lot. Some time within minute.


I couldn't figure out the network script to be honest. When I followed the howto online, the script seemed intent on connecting to our neighbours router, and I couldn't figure out why. (I know, I really should have spent more time trying to fix that, rather than reinventing the wheel, and realizing that my wheel has too many sides...) I also had huge problems with dhcpcd, as well as other dhcp clients, which is why I have static IP right now.

Eigenman
PS The crontab seems to be working find right now. Ironically, when I had it running iwconfig everyminute, that broke the connection. Now I have it run iwconfig only when pinging our router fails.
Back to top
View user's profile Send private message
Elv13
Guru
Guru


Joined: 13 Nov 2005
Posts: 388
Location: Socialist land of North America

PostPosted: Sat Apr 22, 2006 11:55 pm    Post subject: Reply with quote

when you will find why it always try to conect to the same network and not the configurated one, tell us how

i will make a littel investigaion on kernel patch sinc 2.6.14, one seem to cause the problem becose me too it was working before
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