Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I can only connect to the first ap listed in preferred_aps
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
jerkface
n00b
n00b


Joined: 19 Apr 2004
Posts: 65
Location: Tacoma, Wa

PostPosted: Tue May 15, 2007 3:14 am    Post subject: I can only connect to the first ap listed in preferred_aps Reply with quote

My connection at home has a cloaked ESSID and a WEP, and at work it is wide open. In /etc/conf.d/net I have to uncomment the line with the ap I wan't to connect listed first before I try to start wlan0 (see title), or I end up trying to connect to "" with a mac of 00:00:00:00:00:00 and I have to wait for dhcp to timeout. This is really annoying if I forget to edit the file before I leave for work or before I leave work, because I can't edit the file before wlan0 tries to start at boot. Here is an example of how I connect at home.
Code:
modules_wlan0=( "iwconfig" )
key_JerkfaceNet="[1] s:ItsASecret [1] enc restricted"
#preferred_aps_wlan0=( "Work 4Free WiFi" "JerkfaceNet" )
preferred_aps_wlan0=( "JerkfaceNet" "Work 4Free WiFi" )
associate_order="forcepreferredonly"
And if I want to connect at work.
Code:
modules_wlan0=( "iwconfig" )
key_JerkfaceNet="[1] s:ItsASecret [1] enc restricted"
preferred_aps_wlan0=( "Work 4Free WiFi" "JerkfaceNet" )
#preferred_aps_wlan0=( "JerkfaceNet" "Work 4Free WiFi" )
associate_order="forcepreferredonly"
Why can't I connect to the second ap listed? :evil:
_________________
Most Linux users don't know this, but the man pages are named after Chuck Norris. Chuck Norris fscking hates noobs!
Back to top
View user's profile Send private message
jerkface
n00b
n00b


Joined: 19 Apr 2004
Posts: 65
Location: Tacoma, Wa

PostPosted: Wed May 16, 2007 3:44 am    Post subject: Reply with quote

Sorry for the bump, but this should work right? :evil:
_________________
Most Linux users don't know this, but the man pages are named after Chuck Norris. Chuck Norris fscking hates noobs!
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Wed May 16, 2007 12:33 pm    Post subject: Reply with quote

Yes, it should work. Could you post output of it failing to connect to the 2nd AP please?
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
jerkface
n00b
n00b


Joined: 19 Apr 2004
Posts: 65
Location: Tacoma, Wa

PostPosted: Wed May 16, 2007 2:03 pm    Post subject: Reply with quote

This is the output of it failing to connect from home w/
Code:
preferred_aps_wlan0=( "Work 4Free WiFi" "JerkfaceNet" )
Code:
# /etc/init.d/net.wlan0 restart
 * Caching service dependencies ...                                           [ ok ]
 * Stopping wlan0
 *   Bringing down wlan0
 *     Stopping dhcpcd on wlan0 ...                                           [ ok ]
 *     Shutting down wlan0 ...                                                [ ok ]
 * Starting wlan0
 *   Configuring wireless network for wlan0
 *   Trying to force preferred in case they are hidden
 *     wlan0 connected to ESSID "" at 00:00:00:00:00:00
 *     in managed mode on channel 11 (WEP disabled)
 *   Configuration not set for wlan0 - assuming DHCP
 *   Bringing up wlan0
 *     dhcp
 *       Running dhcpcd ...
Error, wlan0: timed out                                                       [ !! ]
And dmesg
Code:
wlan0: islpci_close ()
wlan0: prism54_set_txpower() auto power will be implemented later.
wlan0: prism54_set_txpower() disabling radio is not yet supported.
wlan0: resetting device...
wlan0: uploading firmware...
wlan0: firmware version: 1.0.4.3
wlan0: firmware upload complete
wlan0: interface reset complete
wlan0: prism54_set_txpower() auto power will be implemented later.
wlan0: no IPv6 routers present

_________________
Most Linux users don't know this, but the man pages are named after Chuck Norris. Chuck Norris fscking hates noobs!
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Wed May 16, 2007 3:05 pm    Post subject: Reply with quote

Could you enable RC_VERBOSE="yes" in /etc/conf.d/rc and repost? thanks
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
jerkface
n00b
n00b


Joined: 19 Apr 2004
Posts: 65
Location: Tacoma, Wa

PostPosted: Wed May 16, 2007 4:15 pm    Post subject: Reply with quote

From work this time.
Code:
# /etc/init.d/net.wlan0 restart
 * Starting wlan0
 *   Loading networking modules for wlan0
 *     modules: apipa arping ccwgroup macchanger macnet rename iwconfig essidnet iptunnel iproute2 pppd system dhcpcd ip6to4
 *       iwconfig provides wireless
 *       iproute2 provides interface
 *       pppd provides ppp
 *       dhcpcd provides dhcp
 *   Configuring wlan0 for MAC address 00:E0:98:AE:9C:94 ...                  [ ok ]
 *   Configuring wireless network for wlan0
 *   Trying to force preferred in case they are hidden
 *   Connecting to "JerkfaceNet" in managed mode (WEP enabled - restricted) ...  [ ok ]
 *     wlan0 connected to ESSID "" at 00:00:00:00:00:00
 *     in managed mode on channel 11 (WEP enabled - restricted)
 *   Configuring wlan0 for ESSID "" ...                                       [ ok ]
 *   Configuration not set for wlan0 - assuming DHCP
 *   Bringing up wlan0
 *     dhcp
 *       Running dhcpcd ...
Error, wlan0: timed out
00:E0:98:AE:9C:94 is the work wifi mac :evil:
_________________
Most Linux users don't know this, but the man pages are named after Chuck Norris. Chuck Norris fscking hates noobs!
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Wed May 16, 2007 6:10 pm    Post subject: Reply with quote

OK, that shows it's an issue with the prism54 driver. This driver isn't maintained that much, but it should still work.

What baselayout version are you running?
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
jerkface
n00b
n00b


Joined: 19 Apr 2004
Posts: 65
Location: Tacoma, Wa

PostPosted: Thu May 17, 2007 3:55 am    Post subject: Reply with quote

I'm using baselayout-1.12.9-r2. I get the same results with 1.12.10-r4. Should I take this up with the prism54 guys? :?

Thanks for the help UberLord.
_________________
Most Linux users don't know this, but the man pages are named after Chuck Norris. Chuck Norris fscking hates noobs!
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Thu May 17, 2007 7:11 am    Post subject: Reply with quote

I'll test my prism54 pcmcia card later today, or tomorrow
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
jerkface
n00b
n00b


Joined: 19 Apr 2004
Posts: 65
Location: Tacoma, Wa

PostPosted: Wed May 30, 2007 5:05 am    Post subject: Reply with quote

Hey UberLord, did you ever get a chance to test your card? At any rate, I'm now smart enough to eject mine when I boot my laptop. :wink:
_________________
Most Linux users don't know this, but the man pages are named after Chuck Norris. Chuck Norris fscking hates noobs!
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