On 03/25/2013 11:08 AM, lilit-aibolit wrote:
On 03/24/2013 12:13 AM, Riccardo Mottola wrote:
Hi,
On 03/23/13 20:13, Peter N. M. Hansteen wrote:
Riccardo Mottola <riccardo.mott...@libero.it> writes:
But i am connecting to a WEP protected network, not WPA.
typical hostname.if for a wep network:
media autoselect nwid wepnetwork nwkey secretasitgets
dhcp
rtsol
activates at boot, or if you do 'sudo sh /etc/netstart ifname'
for wpa, you would change 'nwkey' to 'wpakey' and get sensible
defaults.
Thanks, this looks equivalent to me to what I did configure at the
shell command line using ifconfig.
In fact, If I run netstart later, I too get no link... sleeping.
I start to think that there is a problem with the card's driver: if I
leave the card in at boot time, the kernel will panic and drop into
ddb. However if I insert later, as I did up to now, I don't
Riccardo
.
Hello, you are not alone with Ralink issues.
In my cases as AP:
# cat /etc/hostname.rum0(ral0)
inet 192.168.111.254 255.255.255.0 NONE -inet6 \
media autoselect mode 11g \
mediaopt hostap chan 1 nwid network \
wpakey xxxxxxxxxx
#wpa wpaprotos wpa2 wpaakms psk wpakey xxxxxxxxx
*******************************************************
I happy with my first servers with:
# uname -a
OpenBSD gw.dk 5.0 GENERIC.MP#59 i386
# dmesg | grep ral0
ral0 at pci1 dev 0 function 0 "Ralink RT3090" rev 0x00: apic 2 int 16,
address 00:12:0e:b1:6e:c7
ral0: MAC/BBP RT3071 (rev 0x0213), RF RT3020 (MIMO 1T1R)
But But periodically dmesg and messages log have next error:
ral0: Michael MIC failure
And once per two or three weeks wi-fi stops serving client, so once
per week I do
cron job with:
@weekly /bin/sh /etc/netstart ral0
*********************************************************
Let's look to my second box:
# uname -a
OpenBSD gw.kh 5.2 GENERIC.MP#339 i386
# dmesg | grep rum0
rum0 at uhub2 port 3 "Ralink 802.11 bg WLAN" rev 2.00/0.01 addr 3
rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528, address 6c:62:6d:12:5d:59
Wi-fi doesn't work after configuration:
rum0: device timeout
***********************************************************
And third one:
# uname -a
OpenBSD gw 5.2 GENERIC.MP#339 i386
# dmesg | grep ral0
ral0 at pci1 dev 0 function 0 "Ralink RT2790" rev 0x00: apic 0 int 16,
address 00:22:43:5d:6c:b1
ral0: MAC/BBP RT2872 (rev 0x0200), RF RT2720 (MIMO 1T2R)
# ifconfig ral0
ral0: flags=28843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,NOINET6> mtu
1500
lladdr 00:22:43:5d:6c:b1
priority: 4
groups: wlan
media: IEEE802.11 autoselect mode 11g hostap
status: active
ieee80211: nwid test chan 3 bssid 00:22:43:5d:6c:b1 wpakey
0x437fe128e9de20eedab446ea43a2b68a6b833c66bc62e13a2bef13b24ad7d5ed
wpaprotos wpa1,wpa2 wpaakms psk wpaciphers tkip,ccmp wpagroupcipher tkip
inet 192.168.55.254 netmask 0xffffff00 broadcast 192.168.55.255
# tail /var/log/daemon
Mar 25 12:51:00 gw dhcpd[22330]: DHCPDISCOVER from 00:17:9a:b0:19:db
via ral0
Mar 25 12:51:00 gw dhcpd[22330]: DHCPOFFER on 192.168.55.18 to
00:17:9a:b0:19:db via ral0
Mar 25 12:51:08 gw dhcpd[22330]: DHCPDISCOVER from 00:17:9a:b0:19:db
via ral0
Mar 25 12:51:08 gw dhcpd[22330]: DHCPOFFER on 192.168.55.18 to
00:17:9a:b0:19:db via ral0
Mar 25 12:51:08 gw dhcpd[22330]: DHCPREQUEST for 192.168.55.18 from
00:17:9a:b0:19:db via ral0
Mar 25 12:51:08 gw dhcpd[22330]: DHCPACK on 192.168.55.18 to
00:17:9a:b0:19:db via ral0
And it seems to work fine until you do something real,
for example I try to copy 10MB file to this server from client,
that connected to it via wi-fi:
# scp ppo@192.168.55.18:/home/ppo/Downloads/gfibackup2009home.exe .
ppo@192.168.55.18's password:
gfibackup2009home.exe
15% 1872KB 0.5KB/s - stalled -
^CKilled by signal 2.
Copying started with speed 100KB/sec and than slowdown so I need to
ctrl+c it.
Client PC stays at the from of the server and it shows connection
speed 54Mb/sec
So in this case no error present, but wi-fi didn't work as expected.
***********************************************************************
I've no idea how much mini-pci cards I should test to find which is
works without any issues.
This weird issue is killing me:
ral0: Michael MIC failure
It worked about year in Host AP mode with WPA PSK
and now it doesn't work even after
# sh /etc/netstart ral0
Only if I change hostname.ral0 to
inet 192.168.22.1 255.255.255.0 NONE -inet6 \
mediaopt hostap nwid ektos-tlv \
-wpakey
clients can connect and get IP from dhcpd. If I change back to
inet 192.168.22.1 255.255.255.0 NONE -inet6 \
mediaopt hostap nwid ektos-tlv \
wpa wpaprotos wpa2 wpaakms psk wpakey PresharedKey
Any clients immediately report that they are unable to connect.