[pkg-wpa-devel] troubles with roaming mode
Andrei Popescu
andreimpopescu at gmail.com
Sun May 11 08:02:28 UTC 2008
Hello,
I posted this to debian-user (after a week of research and googling),
but nobody has any ideeas.
I'm trying to configure the roaming mode for wpasupplicant but I don't
seem to get it right.
After boot (as root or as my user who is in the 'netdev' group):
,----[ /sbin/wpa_cli ]
| wpa_cli v0.6.3
| Copyright (c) 2004-2008, Jouni Malinen <j at 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 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 ('dhclient eth1' will work and assign me an IP), but
,----[ /sbin/ifconfig ]
| 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 mine) 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 more than 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
| }
`----
Other details you might need (my system is up-to-date sid):
kernel 2.6.24-1-686 (standard Debian)
wireless ipw2200
wpasupplicant 0.6.3-1
Regards,
Andrei
--
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-wpa-devel/attachments/20080511/1f93e989/attachment.pgp
More information about the Pkg-wpa-devel
mailing list