Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cant get wifi to automatically associate with correct ESSID
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
pgratz
n00b
n00b


Joined: 06 May 2003
Posts: 26

PostPosted: Thu Sep 07, 2006 2:17 am    Post subject: Cant get wifi to automatically associate with correct ESSID Reply with quote

Hi All,

I'm having some problems with my wifi setup. Currently if I either
come out of hibernate or turn off the wifi kill switch on my laptop
the network card will connect to the first available network even
though it is blacklisted. I have to manually run

/etc/init.d/net.eth0 restart

to get it to correctly associate with the right network (my local WEP
encrypted network).

I'm using the following:
baselayout-1.12.4-r7
udev-087-r1
ifplugd-0.28-r5

Here is what I have in /etc/conf.d/net

Code:

config_eth0=( "dhcp" )
config_eth1=( "dhcp" )
config_eth2=( "dhcp" )


Here is what I have in /etc/conf.d/ifplugd

Code:

INTERFACES="eth0 eth1 eth2"
WIRELESS_INTERFACES="yes"
AUTO="yes"
BEEP="yes"
IGNORE_FAIL="yes"
IGNORE_FAIL_POSITIVE="yes"
IGNORE_RETVAL="yes"
POLL_TIME="1"
DELAY_UP="0"
DELAY_DOWN="0"
API_MODE="auto"
SHUTDOWN="no"
WAIT_ON_FORK="no"
MONITOR="yes"
ARGS=""


Here is what I have in /etc/conf.d/wireless

Code:

key_mylanpgratz="XXXXXXXXXXXXXXXXXXXXXXXXX"
key_ronlucianet="XXXXXXXXXXXXXXXXXXXXXXXXX"
preferred_aps=( "mylanpgratz" "ronlucianet" )
blacklist_aps=( "linksys" )


I'm expecting that when I disengage the kill switch I should get
connected to the correct wireless network, is that correct? Can you
see anything I'm doing wrong? Incidentally this used to work
correctly up untill maybe a month or two ago, I'm just now starting to
look into why its broke...

Incidentally here is what it says (with rc verbose on) when I manually
restart eth0:

Code:

pglaptop log # /etc/init.d/net.eth0 restart
 * Starting eth0
 *   Loading networking modules for eth0
 *     modules: apipa arping ccwgroup macchanger macnet rename ifplugd iwconfig essidnet iptunnel ifconfig pppd system dhclient ip6to4
 *       ifplugd provides plug
 *       iwconfig provides wireless
 *       ifconfig provides interface
 *       pppd provides ppp
 *       dhclient provides dhcp
 *   Configuring eth0 for MAC address 00:0E:35:27:CB:EA ...                      [ ok ]
 *   ifplugd does not work on wireless interfaces
 *   Configuring wireless network for eth0
 *   Scanning for access points
 *     Found "mylanpgratz" at 00:0F:3D:5E:25:F2 (managed, encrypted)
 *     Found "For E(a)gans Only" at 00:16:B6:0D:BB:A5 (managed)
 *     Found "Apt417" at 00:0C:41:A0:39:FE (managed, encrypted)
 *     Found "Sarah's Whore Network" at 00:16:B6:CD:F5:9B (managed, encrypted)
 *     Found "blahblahblah" at 00:0F:66:CC:9F:E4 (managed, encrypted)
 *     Found "linksys" at 00:0F:66:B8:18:B4 (managed)
 *       "linksys" has been blacklisted - not connecting
 *     Found "Depot 7" at 00:0F:66:CE:01:BD (managed, encrypted)
 *     Found "BartletforAmerica" at 00:16:B6:30:0F:04 (managed, encrypted)
 *     Found "champagnebubble" at 00:14:BF:A3:30:8B (managed, encrypted)
 *     Found "ibiatcl22" at 00:0F:66:AD:63:19 (managed, encrypted)
 *   Connecting to "mylanpgratz" in managed mode (WEP enabled - open) ...        [ ok ]
 *     eth0 connected to ESSID "mylanpgratz" at 00:0F:3D:5E:25:F2
 *     in managed mode on channel 1 (WEP enabled - open)
 *   Configuring eth0 for ESSID "mylanpgratz" ...                                [ ok ]
 *   Bringing up eth0
 *     dhcp
 *       Running dhclient ...                                                    [ ok ]
 *       eth0 received address 192.168.1.16/24



Thanks for any help!
Paul
Back to top
View user's profile Send private message
pgratz
n00b
n00b


Joined: 06 May 2003
Posts: 26

PostPosted: Sun Sep 10, 2006 7:31 pm    Post subject: Reply with quote

[Bump]

Sorry about the self bump but this is something I'd really like to fix. Anyone have any ideas or is this the expected behavior?
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Sun Sep 10, 2006 10:42 pm    Post subject: Reply with quote

I normally use ifplugd for wired networking and wpa_supplicant for wireless. Baselayout-1.12* has builtin support for both.
Back to top
View user's profile Send private message
pgratz
n00b
n00b


Joined: 06 May 2003
Posts: 26

PostPosted: Sun Sep 10, 2006 10:53 pm    Post subject: Reply with quote

Hmmm, can you use wpa_suplicant with WEP (non-WPA) and non-encrypted APs?
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Sun Sep 10, 2006 11:03 pm    Post subject: Reply with quote

Yes
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