Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Wireless Card Wont start throught init scripts
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
Hiltz
n00b
n00b


Joined: 17 Aug 2005
Posts: 28

PostPosted: Wed Aug 02, 2006 6:15 pm    Post subject: Wireless Card Wont start throught init scripts Reply with quote

I have an atheros based wireless card, i use madwifi for it. It's allways given me trouble
when i have my init scripts try to start and associate to my access point it tells me no access points were found.
Now if i tell the interface to come up ie by typing "ifconfig ath0 up" before running the initscripts it will work just fine.
now is there anyway to tell the interface to go up before it tries to find an access point?

Here's my /etc/conf.d/wireless
Code:

config_wireless1=( "wireless1" )
key_wireless1="5815af5d29dd7d93d2041626a2 enc open"

preferred_aps=( "wireless1" )
unique_ap="yes" ##I have two wireless cards in my comp, the problem existed
                          ## long before i ever put the 2nd one in
associate_order="forcepreferred"

preup() {
            ifconfig $IFACE up  ## I was Hoping this would work but it hasnt seemed to make any difference
}
Back to top
View user's profile Send private message
mamac
l33t
l33t


Joined: 29 Feb 2004
Posts: 890

PostPosted: Thu Aug 03, 2006 5:40 am    Post subject: Reply with quote

Hi,

I think your thread is a duplicated one, please join this one
_________________
Powered by Gentoo Linux since 2003
Back to top
View user's profile Send private message
Hiltz
n00b
n00b


Joined: 17 Aug 2005
Posts: 28

PostPosted: Thu Aug 03, 2006 6:25 am    Post subject: Reply with quote

Its a different problem, he had a problem with wpa, my configuration doesnt use wpa.
The problem i'm having is that my wireless card wont go up (automaticly) with the init scripts.
I need it to go up before it will associate with an access point, w/o being up it wont scan, and because it cant scan it cant find my access point
Back to top
View user's profile Send private message
mamac
l33t
l33t


Joined: 29 Feb 2004
Posts: 890

PostPosted: Thu Aug 03, 2006 6:30 am    Post subject: Reply with quote

What error message do you have?
What is the version of baselayout?
_________________
Powered by Gentoo Linux since 2003
Back to top
View user's profile Send private message
Hiltz
n00b
n00b


Joined: 17 Aug 2005
Posts: 28

PostPosted: Thu Aug 03, 2006 6:37 am    Post subject: Reply with quote

My baselayout version is: 1.11.14-r3
The error i have is

Code:

* Starting ath0
*     Configuring wireless network for ath0
*          no access points found
*     Couldn't find any access points on ath0
*     Failed to configure wireless for ath0
Back to top
View user's profile Send private message
mamac
l33t
l33t


Joined: 29 Feb 2004
Posts: 890

PostPosted: Thu Aug 03, 2006 6:46 am    Post subject: Reply with quote

For me it's like if the system doesn't find the SSID, but it works when you start it manually... :?

Did you read this?
_________________
Powered by Gentoo Linux since 2003
Back to top
View user's profile Send private message
Hiltz
n00b
n00b


Joined: 17 Aug 2005
Posts: 28

PostPosted: Thu Aug 03, 2006 6:51 am    Post subject: Reply with quote

yea i've read everything on gentoo's site about wireless, even gentoo-wiki's site

the weird thing is that when i tell the interface to go up manually by "ifconfig ath0 up", then run the init scripts it runs fine, no idea why the init scripts dont automatically tell the interface to go up before trying to search for aps?
btw is there anyway to tell the init scripts that they should sleep for a certain time before it tries to search for an accesspoint?
Back to top
View user's profile Send private message
mamac
l33t
l33t


Joined: 29 Feb 2004
Posts: 890

PostPosted: Thu Aug 03, 2006 7:03 am    Post subject: Reply with quote

I don't use wireless anymore but when I did, I think I remember I used iwconfig instead of if config...

Can you try :
Code:

rc-update add ath0 default

_________________
Powered by Gentoo Linux since 2003
Back to top
View user's profile Send private message
Hiltz
n00b
n00b


Joined: 17 Aug 2005
Posts: 28

PostPosted: Thu Aug 03, 2006 7:12 am    Post subject: Reply with quote

it is set to start at boot already
iwconfig only sets wireless variables for essid wep etc
ifconfig controls the basic interface functions like bring it up or down, setting an ip etc
for now i have it set to force my ip, and it seems to be working
Back to top
View user's profile Send private message
96140
Retired Dev
Retired Dev


Joined: 23 Jan 2005
Posts: 1324

PostPosted: Sun Aug 13, 2006 6:57 pm    Post subject: Reply with quote

Might want to check out this topic for a script to fix things.
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