Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Atheros based card goofy on startup
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
theMerge
Apprentice
Apprentice


Joined: 01 Sep 2005
Posts: 158
Location: Little Elm, TX

PostPosted: Thu Apr 12, 2007 11:21 pm    Post subject: Atheros based card goofy on startup Reply with quote

OK... I'm sick of Googling and searching so I'm going to break down and ask for help. My wireless card (atheros based) acts goofy when net.ath0 starts up during the boot sequence. I have to restart fairly often due to STUFF I have to do on windows :P. As soon as the system is started and I get to at terminal, everything acts just as it should.

Here's what I get...
Code:
 * Starting ath0
 *   Configuring wireless network for ath0
 *     ath0 connected to ESSID "Church" at MY:MA:CA:DD:YY
 *     in managed mode on channel 6 (WEP enabled - open)
 *   Bringing up ath0
 *     dhcp
 *       Running dhcpcd ...                                              [!!]
dhcp timeout...
And then there is the sound of breaking glass and sputtering engines as apache, ssh and everything else complains that there is no network connection.

Any advice?
_________________
[Insert favorite Ghandi quote here]
Back to top
View user's profile Send private message
swimmer
Veteran
Veteran


Joined: 15 Jul 2002
Posts: 1330
Location: Netherlands

PostPosted: Fri Apr 13, 2007 1:44 am    Post subject: Reply with quote

As a workaround I put those two lines in my /etc/conf.d/local.start:
Code:
/etc/init.d/net.ath0 restart
rc

I admit immediately that it's not the most elegant and clean solution but I needed it to work and it works ;-)

I'd like to know anyway what's causing this and how I can resolve it ...

Greetz
swimmer
Back to top
View user's profile Send private message
theMerge
Apprentice
Apprentice


Joined: 01 Sep 2005
Posts: 158
Location: Little Elm, TX

PostPosted: Fri Apr 13, 2007 2:39 am    Post subject: Reply with quote

It's a hack, but I think it will work. I'll just start the dependencies in local.start and see what happens.
_________________
[Insert favorite Ghandi quote here]
Back to top
View user's profile Send private message
Suicidal
l33t
l33t


Joined: 30 Jul 2003
Posts: 959
Location: /dev/null

PostPosted: Fri Apr 13, 2007 2:56 am    Post subject: Reply with quote

Try increasing your DHCP timeout in /etc/conf.d/net
Back to top
View user's profile Send private message
theMerge
Apprentice
Apprentice


Joined: 01 Sep 2005
Posts: 158
Location: Little Elm, TX

PostPosted: Fri Apr 13, 2007 2:58 am    Post subject: Reply with quote

Suicidal wrote:
Try increasing your DHCP timeout in /etc/conf.d/net
Also a good call I'll do that.
_________________
[Insert favorite Ghandi quote here]
Back to top
View user's profile Send private message
swimmer
Veteran
Veteran


Joined: 15 Jul 2002
Posts: 1330
Location: Netherlands

PostPosted: Fri Apr 13, 2007 8:18 am    Post subject: Reply with quote

Suicidal wrote:
Try increasing your DHCP timeout in /etc/conf.d/net
This did not help in my case :-/
Back to top
View user's profile Send private message
niltonvolpato
n00b
n00b


Joined: 28 May 2003
Posts: 68
Location: Campinas, Brazil

PostPosted: Wed Jun 06, 2007 5:15 am    Post subject: Reply with quote

I'm having this same problem. And I suppose that your problem is just like mine: the net.ath0 script is trying to connect using a random channel and not the channel of the associated access point.

The problem is weird, because putting:
Code:

channel_ath0="6" # in my case the correct channel is 6

or any other variant does not work!

-- Nilton
Back to top
View user's profile Send private message
pdr
l33t
l33t


Joined: 20 Mar 2004
Posts: 618

PostPosted: Wed Jun 06, 2007 11:21 am    Post subject: Reply with quote

Same problem - finds ap but connects on channel 11 when the ap is on channel 1.
I just manually log in as root first and do "iwconfig ath0 channel 1" - I may try putting that in localstart..
Back to top
View user's profile Send private message
Aapzak
n00b
n00b


Joined: 21 Mar 2003
Posts: 12

PostPosted: Thu Jul 05, 2007 6:12 pm    Post subject: Reply with quote

It's even worse ... sometimes I says to me it's connecting on channel 7, and when I check with iwlist ath0 chan, it apears to be on an other channel.

This is weird. There is no bug on bugs.gentoo.org either.
Back to top
View user's profile Send private message
niltonvolpato
n00b
n00b


Joined: 28 May 2003
Posts: 68
Location: Campinas, Brazil

PostPosted: Thu Jul 05, 2007 6:58 pm    Post subject: Reply with quote

There is a bug report i filled. It's here: https://bugs.gentoo.org/show_bug.cgi?id=181545
Please, help by providing information. And any hints so that someone can fix this.
Back to top
View user's profile Send private message
def_mornahan
n00b
n00b


Joined: 01 Aug 2004
Posts: 12
Location: southern Imiria

PostPosted: Mon Jul 09, 2007 1:55 am    Post subject: Reply with quote

I have a similar problem, but all I have to do to fix it is type
Code:
dhclient ath0

in a terminal. As root, of course.
However, even after I unmerged dhcpcd and made sure that /etc/conf.d/net was using dhclient, the steeyoupid thing won't work during startup. It sat there for a couple of minutes, pinged an address (I assume the router) and died.
_________________
"No rest for the wicked."
Thomas Giesting
Back to top
View user's profile Send private message
x1um1n
Tux's lil' helper
Tux's lil' helper


Joined: 05 Feb 2005
Posts: 126
Location: Chester, UK

PostPosted: Mon Jul 30, 2007 6:37 pm    Post subject: Reply with quote

same problem here, I don't reboot often so its not too annoying, but after upgrading my kernel today its started behaving in an even stranger manner..

after the initial timeout on boot a message pops up saying its been given an IP, but its not the usual IP my router gives me (192.168.2.2 or sumat) but what looks like an actual internet IP..

eg 265.125.42.8 or sumat like that..

but, of course, still no net access..

So I've vowed to solve this once and for all, has anyone else had this newer even stranger behaviour??

I'll post back if I figure anything out..
_________________
Linux Version 2.6.25-hh4, Compiled #1 SMP Sun May 25 17:17:46 GMT 2008
Two 3GHz AMD Athlon 64 Processors, 4GB RAM, 12004 Bogomips Total
omnius
Back to top
View user's profile Send private message
krisse
Guru
Guru


Joined: 15 Mar 2005
Posts: 325
Location: Sweden

PostPosted: Sat Aug 04, 2007 5:03 pm    Post subject: Reply with quote

Same problem here. Really annoying.

Putting a ath0 restart in local.start does the trick, but it's, as you've said, a really ugly hack.

Also tried some postup functions, as suggested in other threads; neither "ifconfig ath0 up" or "iwconfig ath0 channel 6" works.

Has anyone gotten this to work -- any other way than the local.start restarting?
Back to top
View user's profile Send private message
def_mornahan
n00b
n00b


Joined: 01 Aug 2004
Posts: 12
Location: southern Imiria

PostPosted: Sat Sep 29, 2007 12:43 am    Post subject: once again with feeling Reply with quote

Is there something wrong with the net.ath0 script? For s's & g's I pushed 'I' for interactive boot and chose not to start net.lo and net.ath0. So I ran

Code:
sudo /etc/init.d/net.lo start
<great>
sudo /etc/init.d/net.ath0 start
<same complete dhclient meltdown, tap your foot for 3 minutes>


And I run my usual
Code:
sudo dhclient ath0
and it works fine. I notice there's a brand new wonky error message in the middle of the dhclient output since updating a week or two ago:
Code:
option_space_encapsulate: option space agent does not exist, but is configured

which occurs between "Sending on Socket/fallback" and "DHCPDISCOVER..." and then again between "DHCPOFFER..." and "DHCPREQUEST..." but at least my internet works.
So what gives?
_________________
"No rest for the wicked."
Thomas Giesting
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