From owner-freebsd-usb@FreeBSD.ORG Thu Apr 2 09:40:05 2009 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 77E351065673 for ; Thu, 2 Apr 2009 09:40:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 655068FC0C for ; Thu, 2 Apr 2009 09:40:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n329e5bH097896 for ; Thu, 2 Apr 2009 09:40:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n329e5Tg097895; Thu, 2 Apr 2009 09:40:05 GMT (envelope-from gnats) Date: Thu, 2 Apr 2009 09:40:05 GMT Message-Id: <200904020940.n329e5Tg097895@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Hans Petter Selasky Cc: Subject: Re: usb/133296: rum driver not working properly in hostap mode X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Hans Petter Selasky List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Apr 2009 09:40:06 -0000 The following reply was made to PR usb/133296; it has been noted by GNATS. From: Hans Petter Selasky To: freebsd-usb@freebsd.org Cc: Luchezar Georgieff , freebsd-gnats-submit@freebsd.org Subject: Re: usb/133296: rum driver not working properly in hostap mode Date: Thu, 2 Apr 2009 11:40:21 +0200 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: at usbus0 > rum0: 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 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 > 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