[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

wpasupplicant in roaming mode



Hello everybody,

I'm trying to configure the roaming mode for wpasupplicant but I don't 
seem  to get it right.

After boot:

$ /sbin/wpa_cli # my user is in 'netdev' group
wpa_cli v0.6.3
Copyright (c) 2004-2008, Jouni Malinen <j@w1.fi> and contributors

This program is free software. You can distribute it and/or modify it
under the terms of the GNU General Public License version 2.

Alternatively, this software may be distributed under the terms of the
BSD license. See README and COPYING for more details.


Could not connect to wpa_supplicant - re-trying

(I have to interrupt it with Ctrl-c)

$ ps aux | grep wpa
root      2273  0.0  0.1   4348   964 ?        S<s  21:16   0:00 /sbin/wpa_supplicant -W -B -P /var/run/wpa_supplicant.eth1.pid -i eth1 -D wext -t -ddd -f /var/log/wpa_supplicant.eth1.log -c /etc/wpa_supplicant/wpa-roam.conf

$ /sbin/iwconfig eth1

eth1      IEEE 802.11g  ESSID:"homewlan"  
          Mode:Managed  Frequency:2.442 GHz  Access Point: 00:1B:11:F7:8B:6C   
          Bit Rate:54 Mb/s   Tx-Power=20 dBm   Sensitivity=8/0  
          Retry limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=88/100  Signal level=-41 dBm  Noise level=-89 dBm
          Rx invalid nwid:0  Rx invalid crypt:1  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

'homewlan' is my D-Link router and as far as I can read the log the 
connection is ok, but

$ /sbin/ifconfig eth1
eth1      Link encap:Ethernet  HWaddr 00:0e:35:b3:f8:ed  inet6 addr: 
fe80::20e:35ff:feb3:f8ed/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:24 errors:1 dropped:1 overruns:0 frame:0
          TX packets:3 errors:0 dropped:1 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1206 (1.1 KiB)  TX bytes:1077 (1.0 KiB)
          Interrupt:11 Base address:0xe000 Memory:d0200000-d0200fff 

If I 'ifdown/ifup' my adapter it will eventually reconnect to my router 
(after trying all networks in the neighbourhood, though I set a high 
priority for it) and also make the proper settings according to my 
/etc/network/interfaces

Here are my configs. I hope you can spot some error because I'm banging 
my head against the wall for almost a week now.


,----[ /etc/network/interfaces ]
| # This file describes the network interfaces available on your system
| # and how to activate them. For more information, see interfaces(5).
|
| # The loopback network interface
[...]
|
| # The primary network interface
[...]
|
| ## The wireless interface
| #allow-hotplug eth1
| #iface eth1 inet static
| #	wpa-ap-scan 1
| #	wpa-scan-ssid 1
| #	wpa-ssid homewlan
| #	wpa-psk xxxxxxxxxxxxx
| #	address 192.168.77.78
| #	netmask 255.255.255.0
| #	gateway 192.168.77.253
| #	dns-nameservers 192.168.77.253 193.231.233.1 193.231.233.8
|
| allow-hotplug eth1
| iface eth1 inet manual
|	wpa-ap-scan 1
|	wpa-scan-ssid 1
| 	wpa-roam /etc/wpa_supplicant/wpa-roam.conf
| 	wpa-debug-level 3
|
| iface homewlan inet static
| 	address 192.168.77.78
| 	netmask 255.255.255.0
| 	gateway 192.168.77.253
| 	dns-nameservers 192.168.77.253 193.231.233.1 193.231.233.8
|
| iface airport inet dhcp
|
| iface default inet dhcp
`----

,----[ /etc/wpa_supplicant/wpa-roam.conf ]
| update_config=1
|
| ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
|
| # My networks
| # at home
| network={
|         ssid="homewlan"
| 	  psk="xxxxxxxxxxxxxxx"
|         proto=RSN
|         key_mgmt=WPA-PSK
|         pairwise=CCMP
|         group=CCMP
|         id_str="homewlan"
|         priority=10
| }
|
| # airport
| network={
|         ssid="Hol plecari_11G 2"
|         key_mgmt=NONE
|         id_str="airport"
|         priority=5
| }
|
| ###############################################################################
| # Default behaviour is to associate with any open access point, further
| # networks can be configured with wpa_cli/wpa_gui.
| #
| network={
|         key_mgmt=NONE
| }
`----

Regards,
Andrei
-- 
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)

Attachment: signature.asc
Description: Digital signature


Reply to: