Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Apr 2009 11:40:21 +0200
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        freebsd-usb@freebsd.org
Cc:        Luchezar Georgieff <lucho@sofiaonline.net>, freebsd-gnats-submit@freebsd.org
Subject:   Re: usb/133296: rum driver not working properly in hostap mode
Message-ID:  <200904021140.22804.hselasky@c2i.net>
In-Reply-To: <200904020704.n3274n1r001634@www.freebsd.org>
References:  <200904020704.n3274n1r001634@www.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 02 April 2009, Luchezar Georgieff wrote:
> >Number:         133296
> >Category:       usb
> >Synopsis:       rum driver not working properly in hostap mode
> >Confidential:   no
> >Severity:       non-critical
> >Priority:       low
> >Responsible:    freebsd-usb
> >State:          open
> >Quarter:
> >Keywords:
> >Date-Required:
> >Class:          sw-bug
> >Submitter-Id:   current-users
> >Arrival-Date:   Thu Apr 02 07:10:01 UTC 2009
> >Closed-Date:
> >Last-Modified:
> >Originator:     Luchezar Georgieff
> >Release:        8.0-CURRENT
> >Organization:
> >Environment:
>
> [root@nomad ~]# uname -a
> FreeBSD nomad 8.0-CURRENT FreeBSD 8.0-CURRENT #6: Mon Mar 30 19:30:16 UTC
> 2009     root@nomad:/usr/obj/usr/src/sys/LUCHIX  i386 [root@nomad ~]#
>
> >Description:
>
> rum driver not working with several (all I found) usb wireless cards in
> hostap mode. At first sight  client station is connected and ping is ok.
> After putting some load at wireless link ( opening big web page or stating
> download file and client machine) link hangs. Sometimes dhcp does not work,
> but if I set manual IP address traffic comes for a little time and hangs.
> Using tcpdump in most case gives me following output: [root@nomad ~]#
> tcpdump -i wlan0 -n
> tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
> listening on wlan0, link-type EN10MB (Ethernet), capture size 96 bytes
>
> [root@nomad ~]# tcpdump -i wlan0 -n
> tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
> listening on wlan0, link-type EN10MB (Ethernet), capture size 96 bytes
>
> 08:56:26.510840 00:1f:3b:27:22:ab > ff:ff:ff:ff:ff:ff Null Supervisory,
> Receiver not Ready, rcv seq 64, Flags [Poll], length 6 08:56:26.510860
> 00:1f:3b:27:22:ab > ff:ff:ff:ff:ff:ff Null Supervisory, Receiver not Ready,
> rcv seq 64, Flags [Poll], length 6
>
> Sometimes I see traffic from client machine only (arp requests)
>
> May be it is connected with some broadcasting problem.
>
> If anybody needs I can provide ssh access to machine - it is test setup, I
> want to make 3G/Wireless router for my car :)
>
> The machine is old P3 (IBM Thinkpad T22), but I have tested on few other
> machines with exatcly the same result.
>
> >How-To-Repeat:
>
> insert ralink-equiped usb device:
> ugen0.2: <Ralink> at usbus0
> rum0: <Ralink 802.11 bg WLAN, class 0/0, rev 2.00/0.01, addr 2> on usbus0
> rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528
> [root@nomad ~]#
>
> I use this scrpt to create wlan0:
> [root@nomad ~]# cat /root/ifcreate
> #!/usr/local/bin/bash
>
> wifi="wlan0"
> wdev="rum0"
> wauth="open"
> loc="indoor"
>
> echo creaing $wifi
>
> ifconfig $wifi down
> ifconfig $wifi destroy
>
> ifconfig $wifi create wlandev $wdev  wlanmode hostap authmode $wauth\
>          ssid nomad country BG $loc
> sleep 2
> ifconfig wlan0  192.168.90.1/24 up
>
> # wlandebug -i $wifi  +scan+auth+debug+assoc
> /usr/local/etc/rc.d/isc-dhcpd restart
> /etc/rc.d/named restart
> pfctl -d
> pfctl -f /etc/pf.conf
> pfctl -e
>
> ifconfig wlan0
>
> outout from it:
> [root@nomad ~]# /root/ifcreate
> creaing wlan0
> ifconfig: interface wlan0 does not exist
> ifconfig: interface wlan0 does not exist
> dhcpd not running? (check /var/run/dhcpd/dhcpd.pid).
> Starting dhcpd.
> Internet Systems Consortium DHCP Server V3.0.7
> Copyright 2004-2008 Internet Systems Consortium.
> All rights reserved.
> For info, please visit http://www.isc.org/sw/dhcp/
> Wrote 3 leases to leases file.
> Listening on BPF/wlan0/00:18:f3:3a:19:d2/192.168.90/24
> Sending on   BPF/wlan0/00:18:f3:3a:19:d2/192.168.90/24
> Sending on   Socket/fallback/fallback-net
> Stopping named.
> Starting named.
> pf disabled
> pf enabled
> wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
>         ether 00:18:f3:3a:19:d2
>         inet 192.168.90.1 netmask 0xffffff00 broadcast 192.168.90.255
>         media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <hostap>
>         status: running
>         ssid nomad channel 1 (2412 Mhz 11g) bssid 00:18:f3:3a:19:d2
>         regdomain ETSI country BG indoor authmode OPEN privacy OFF txpower
> 30 scanvalid 60 protmode CTS dtimperiod 1 -dfs
> [root@nomad ~]#
> [
>
> >Fix:
> >
> >
> >Release-Note:
> >Audit-Trail:
> >Unformatted:

Does the dongle work fine in client mode?

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904021140.22804.hselasky>